Actions / forms
Each knowledge source can include an ## Actions section with a JSON fence.
Uploading a source indexes the prose. It does not create widget actions.
After the sources are uploaded, open the project and choose Generate actions.
Generate actions keeps the method, path, and fields from that JSON. It writes a short description the chat uses to decide when an action is relevant, and tags which knowledge source names may offer it. With one source, every action is tagged to that source. With several, a backend route is typically offered by the frontend or mobile source, where the widget actually runs.
When the assistant needs a mutation (cancel an order, update a profile, and so on),
the widget shows a form and submits to your API from the host page after
authCallback. This product does not call your API for you.
If the signed-in user is not allowed to run the action, your API should return
401 or 403. The widget then says they do not have permission. You can also put a
permission string on an action in the JSON when your docs already name
one. If authCallback returns permissions and that string
is missing, the form stays hidden. Omitting permissions still shows
the form, and your API response is the real check.
Build those action descriptions into the markdown with the knowledge builder, upload each repo as its own knowledge source, then generate actions once.