2024/3/19 devkin meetup!

Learning kintone JavaScript API for AI-Assisted Development Environment

Solving the "Reading Documentation is Tedious" Problem

Daisuke Motohashi @ Kintone Lab

Daisuke Motohashi

Born in Saitama in 1977
Living in Tokushima since 2004

My hobby is crafting.
I work as a programmer, but I also make custom signs.

Solving the "Reading Documentation is Tedious" Problem

kintone REST API Documentation

https://cybozu.dev/ja/kintone/docs/rest-api/

Now you can have AI read it and ask questions to the AI to use it.

Steps with cursor

  • Obtain OpenAI's API key
  • Call chat with CTRL+L
  • Select '+ Add new doc' from the at-mark
  • Enter the top URL of the document and wait a bit

Register from CTRL+L to @

Enter the Document URL

Enter the Call Keyword

Indexing...

Ready! Let's Ask a Question!

Any Interesting APIs?

Among the kintone JavaScript APIs, the following are particularly interesting:

  1. Get App Information (kintone.app.get()): This function allows you to obtain basic information about the app currently open. You can easily retrieve detailed information about the app, such as the app ID, app name, and app description, from your program.
  1. Toggle the Display of the Record Addition Button (kintone.app.setRecordAddButtonShown(isShown)): Depending on user actions, you can dynamically show or hide the record addition button. This allows for customization, such as allowing record additions only under certain conditions.
  1. Show/Hide the Sidebar (kintone.app.record.showSideBar(mode) / kintone.app.record.hideSideBar()): In the record detail or edit screens, you can show or hide the sidebar. This enables UI optimization based on user operations.

These APIs allow for flexible UI manipulation and information retrieval to enhance user experience in kintone customization. (Reference)

Demo

@api-labo REST What kind of APIs are there?

Any Public Document Can Become a Chatbot

How to Use

  • As a companion when trying out new languages or frameworks
  • If the information is okay to share, you can tell members to "have cursor read it"
  • In the future, you might not need documentation if you can write references

For More Details, Please Visit note ⬆️⬆️⬆️

For Example, You Might Ask

  • Can you turn a blog into a chatbot?
  • How much does a custom sign order start from?
  • How does the cursor chatbot work?

Thank You for Listening

For questions or sign-making requests, please contact here
X: https://twitter.com/motohasystem
bluesky: https://bsky.app/profile/motohasystem.bsky.social

- class: normal / blue / green / red / kintone / purple

Self Introduction

![bg right:40% 140%](img/family.png)