Create agent action
Create a new action for a specific agent.
Request
- Base URL: https://api.useinvent.com
- URL: https://api.useinvent.com/orgs/agents/{agent_id}/actions
- Auth: HTTP bearer
Path parameters
The ID of the agent
Request body
Whether the action is available to the agent.
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 agent must ask for approval before running the action. Omit or null to inherit the run default.
Example request
{
"connection_id": "con_XXX"
}Response
The created agent 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", or a "TYPE:*" wildcard covering every action of the app
The ID of the agent
The ID of the connection to use for the action if required
When the agent must ask for approval before running the action. Null inherits the run default.
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",
"agent_id": "agt_XXX",
"connection_id": "con_XXX"
}Changes
No recorded changes to this operation across all 1 revision of this API.