Actions90
- Agent Actions
- Get Agents
- Get Agent By ID
- Create Agent
- Update Agent
- Get Agent Templates
- Get Voices By Language
- Toggle Favorite
- Update Agent Visibility
- Get Agent Prompt History
- Update Success Metric
- Update WhatsApp Notification
- Update Mail Notification
- Get Agent Documents
- Insert Agent Document
- Get AI Models
- Get Agent Actions
- Update Agent Reschedule
- Get Keyword Replacements
- Get Agent Keywords
- Add Keyword
- Update Keyword
- Delete Keyword
- Get Template
- Get Agent Samples
- Get Agent FAQs
- Manage Agent FAQ
- Analytics Actions
- Call Actions
- Campaign Actions
- Contact Actions
- Dashboard Actions
- Identity Actions
- Library Actions
- Marketplace Actions
- SIP Actions
- Wallet Actions
Library → Create Action
AI-generatedSummary
Create a new action in the Vocallabs library.
Inputs
- action_name (required) — Name of the action
- description (required) — Description of the action
- external_curl (required) — External API CURL command
- success_response (required) — Success response message
- failure_response (required) — Failure response message
- interruption_response (required) — Interruption response message
- ref_code (required) — Reference code
Output shape
the created action object (including its generated ID and timestamps)
The response contains the full action record returned by the library API; fields not set remain empty.
Examples
Example 1: Add a new marketing campaign action
action_name: "Marketing Campaign" description: "Promote new product" external_curl: "curl -X POST https://api.example.com/campaigns" success_response: "Campaign created" failure_response: "Campaign failed" interruption_response: "Interrupted" ref_code: "MKT-001"
Example 2: Create a support ticket handling action
action_name: "Support Ticket" description: "Handle incoming tickets" external_curl: "curl -X PUT https://api.example.com/tickets" success_response: "Ticket processed" failure_response: "Ticket error" interruption_response: "User hung up" ref_code: "ST-001"
Example 3: Set up an automated voice response action
action_name: "IVR Response" description: "Play welcome message" external_curl: "curl -X GET https://api.example.com/ivr" success_response: "Message played" failure_response: "Playback failed" interruption_response: "Call transferred" ref_code: "IVR-01"
