ContactSwing Docs home page
Search...
⌘K
Blog
Pricing
Dashboard
Search...
Navigation
Actions
API Action
Guides
API reference
Getting Started
Welcome to ContactSwing !
Registration Process
Dashboard Overview
AI Agents
AI Agents Overview
Types
Knowledge Base
Knowledge Base Overview
Create Knowledge Base
Add FAQs to Knowledge Base
Add Files to Knowledge Base
Add URLs to Knowledge Base
Generative AI
Generative AI Email Management
AI Responder
Mail Handler
Phone Number Management
Phone Number Management
Workflow
Workflow Launchpad
Types
Integrations
Integrations Overview
Integrations
Webhooks
Twilio Setup Guide
Inbox
Inbox Overview
Call Inbox
Chat Inbox
Email Inbox
SMS Inbox
WhatsApp Inbox
Extension
Contactswing Extension
Actions
Actions Overview
Aircall Action
API Action
Call Transfer Action
Data Extraction Action
Email Action
Real-time Booking Action
Shopify Action
SMS Action
WhatsApp Action
Campaigns
Campaign Overview
Types
Customers
Customer Management
Token Analytics
Token Activity
Settings
General Settings
SIP Trunking
SIP Trunking Overview
Inbound SIP Calls
Outbound SIP Calls
Best Practices
Prompting Guide
Prompt Examples
Banking Assistant Prompt
Car Dealership AI Support Prompt
Healthcare Assistant Prompt
E-commerce Assistant Prompt
Real Estate AI Support Prompt
Restaurant AI Support Prompt
Resources
Frequently Asked Questions
Contact Us
On this page
🎥 Video walkthrough
Step-by-step guide
1. Select API action
2. Configure your API action
3. Test the API call
4. Create a prompt for API response integration
5. Create the action
Example API action setup
Actions
API Action
Learn how to integrate external APIs into your workflows. This guide shows you how to configure and use API actions effectively.
🎥 Video walkthrough
Step-by-step guide
Follow these steps to create your API action:
1. Select API action
Choose
API Action
from the available action types to get started.
2. Configure your API action
Fill in the required fields:
Name
: Enter a name for your action (e.g., “My API Action”).
Description
: Briefly describe your API action (e.g., “Action for making API calls during calls”).
Speech
: Specify when to run this action (e.g., “Run this action before the call starts”).
API Endpoint
: Enter the URL for the API you want to call (e.g.,
https://api.example.com/endpoint
).
Method
: Select the HTTP method (e.g., POST).
Headers
: Define any required headers (e.g.,
Content-Type: application/json
).
Body
: If needed, specify the request body (e.g., a JSON object with parameters).
Authentication
: Choose the authentication method (e.g., API Key, OAuth).
Variables
: Define variables to be replaced before the action starts:
Variable Name
: (e.g., userID)
Example Value
: (e.g., 12345)
Key
: (e.g., id)
Value
: (e.g., 12345)
3. Test the API call
Click
Test the API Call
to generate a sample response using your test values.
4. Create a prompt for API response integration
Write a prompt explaining how to use the API response in the conversation (e.g., “Integrate API response into dialogue for personalized feedback”). Initialize the action before setting up the prompt.
5. Create the action
After filling in all required fields, click
Create Action
to save your API action. 🎉
Example API action setup
Name
: My API Action
Description
: Action for making API calls during calls
Speech
: Run this action before the call starts
API Endpoint
:
https://api.example.com/endpoint
Method
: POST
Headers
:
Content-Type: application/json
Body
:
{"key": "value"}
Authentication
: API Key
Variables
:
Key
: userID
Value
: 12345
By following these steps, you can create a new API action and enhance your application with powerful integrations.
Aircall Action
Call Transfer Action
Assistant
Responses are generated using AI and may contain mistakes.