Custom Actions
Custom API Actions
Create custom actions that connect your AI agent to any API or webhook. Build powerful integrations tailored to your specific business needs.
What are Custom Actions?
Custom Actions let you extend your agent's capabilities by connecting to your own APIs, services, or third-party platforms. Your agent can trigger these actions based on conversation context.
Common Use Cases:
- Query your database for customer information
- Create or update records in your CRM
- Process payments or refunds
- Check inventory levels
- Submit support tickets
- Trigger internal workflows
Creating a Custom Action
- Navigate to Actions: Go to your agent's Actions tab
- Click "Create Custom Action"
- Configure Action Details:
- Action name and description
- API endpoint URL
- HTTP method (GET, POST, PUT, DELETE)
- Request headers and authentication
- Request body parameters
- Test the Integration: Use the test panel to verify the action works
- Save and Enable: Make the action available to your agent
Authentication Methods
NexChat supports multiple authentication methods:
API Key
Pass your API key in headers or query parameters
Bearer Token
Use OAuth or JWT tokens for authentication
Basic Auth
Username and password authentication
Security Best Practices
- Always use HTTPS endpoints
- Store API keys securely - never expose them in responses
- Implement rate limiting on your API endpoints
- Validate and sanitize all inputs
- Use read-only permissions when possible
