n8n
n8n is a workflow automation tool that lets you connect ChatAgent to hundreds of other apps. Use it to build custom automations beyond what ChatAgent offers natively.
What you can do
Section titled “What you can do”- Trigger n8n workflows from ChatAgent events (new conversation, order placed, etc.)
- Send data to n8n — forward conversations, orders, contacts to your n8n workflows
- Receive data from n8n — trigger ChatAgent actions from external events
- Build complex automations — combine ChatAgent with Google Sheets, Slack, email, databases, and more
Connecting
Section titled “Connecting”- Go to Settings → Integrations → n8n
- Click Connect n8n
- Enter your n8n instance URL
- Create an API key in n8n (Settings → API)
- Paste the API key into ChatAgent
- Test the connection
- Activate
ChatAgent triggers for n8n
Section titled “ChatAgent triggers for n8n”Use these ChatAgent events to trigger n8n workflows:
| Trigger | Data sent |
|---|---|
| New conversation | Contact info, platform, initial message |
| Message received | Full message, contact, conversation ID |
| Conversation resolved | Summary, duration, outcome |
| Order placed | Order details, customer, products |
| AI handoff | Conversation history, handoff reason |
| Tag added | Contact, tag name |
ChatAgent actions from n8n
Section titled “ChatAgent actions from n8n”Use n8n to trigger ChatAgent actions:
| Action | What it does |
|---|---|
| Send message | Send a WhatsApp message to a contact |
| Add tag | Tag a contact |
| Create contact | Add a new contact |
| Update contact | Modify contact fields |
| Assign conversation | Route to a team member |
Example workflows
Section titled “Example workflows”Order notification to Slack
Section titled “Order notification to Slack”ChatAgent: Order placed → n8n: Format message → Slack: Send to #orders channelCustomer feedback to Google Sheets
Section titled “Customer feedback to Google Sheets”ChatAgent: Conversation resolved → n8n: Extract feedback → Google Sheets: Add rowCRM sync
Section titled “CRM sync”ChatAgent: New contact → n8n: Check if exists in CRM → If new: Create in CRM → If exists: Update last activeWebhook URL
Section titled “Webhook URL”ChatAgent provides a webhook URL for n8n to send data to:
https://api.chatagent.so/webhooks/n8n/{your-webhook-id}Configure this in your n8n workflow as the HTTP Request node’s URL.
- Start with pre-built templates — n8n has a template library with ChatAgent integrations
- Use error handling — add error nodes to catch failures
- Test with sample data — use ChatAgent’s test mode before going live
- Monitor n8n executions — check the n8n dashboard for failed workflows
Next steps
Section titled “Next steps”- Workflows — ChatAgent’s built-in automation
- API — build custom integrations
- Google Sheets — simpler data logging