cURL
curl --request PATCH \ --url https://{appid}.api-{region}.cometchat.io/v3/ai-agents/agent-builder/agents/{uid}/tools/{slug}/actions/add \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "actions": [ "send-email", "draft-email", "read-emails" ] } '
{ "success": true }
API Key (i.e. Rest API Key from the Dashboard).
AI Agent UID
Tool slug (e.g., gmail, googlesheets)
Array of action names to add or remove
["send-email", "draft-email", "read-emails"]
Actions added successfully
The response is of type object.
object
Was this page helpful?
Contact support