Create assistant action
Create a new action for a specific assistant.
Request
- Base URL: https://api.useinvent.com
- URL: https://api.useinvent.com/orgs/assistants/{assistant_id}/actions
- Auth: HTTP bearer
Path parameters
The ID of the assistant
Request body
Whether the action is available to the assistant.
The name of the action, e.g. "Send email"
Extra instructions for the action
Type of the connection action
The ID of the connection to use for the action if required, e.g. "con_XXX"
When the assistant must ask for approval in the chat before running the action. Always use "never" (run without asking).
Example request
{
"connection_id": "con_XXX"
}Response
The created assistant action.
The ID of the action
Whether the action is enabled
The name of the action
The instructions for the action
The ID of the action, e.g. "TOOLS:HTTP_REQUEST"
The ID of the assistant
The ID of the connection to use for the action if required
When the assistant must ask before running the action
The position of the action within its group. Bucketed in multiples of 100, e.g. 100, 101, 102 for the first group, 200, 201, 202 for the second
Example response
{
"action_id": "TOOLS:HTTP_REQUEST",
"assistant_id": "ast_XXX",
"connection_id": "con_XXX"
}Changes
No recorded changes to this operation across all 1 revision of this API.