Actions129
- Accounts Actions
- Account Users Actions
- Agent Bots Actions
- Users Actions
- Inbox API Actions
- Contacts Actions
- Contact Labels Actions
- Conversation Assignments Actions
- Conversations Actions
- Conversation Add Labels
- Conversation Filter
- Conversation List
- Conversation List Meta
- Get Conversation Reporting Events
- Get Details Of A Conversation
- List All Labels Of A Conversation
- New Conversation
- Toggle Priority Of A Conversation
- Toggle Status Of A Conversation
- Update Conversation
- Update Custom Attributes Of A Conversation
- Custom Filters Actions
- Inboxes Actions
- Integrations Actions
- Messages Actions
- Profile Actions
- Reports Actions
- Automation Rule Actions
- Help Center Actions
- Contacts API Actions
- Conversations API Actions
- Messages API Actions
- CSAT Survey Page Actions
- Account Actions
- Audit Logs Actions
- Account Agent Bots Actions
- Agents Actions
- Canned Responses Actions
- Custom Attributes Actions
- Teams Actions
- Webhooks Actions
- Conversation Actions
Automation Rule → Add New Automation Rule To Account
AI-generatedSummary
Add a new automation rule to a Coghub account specifying its name, description, triggering event, active status, actions to perform, and conditions to match.
Inputs
- Name (required) — The name of the automation rule to identify it.
- Description — A description detailing the purpose and actions of the automation rule.
- Event Name (required) — The event that triggers the automation rule, selectable from 'conversation_created', 'conversation_updated', 'conversation_resolved', or 'message_created'.
- Active (required) — Boolean flag to enable or disable the automation rule upon creation.
- Actions (required) — A JSON array defining the actions to perform when the rule conditions are met, e.g., adding a label.
- Conditions (required) — A JSON array defining the criteria under which the automation actions will be executed, such as message content containing specific text.
Output shape
a single record representing the created automation rule, including its ID and configuration details
The response includes the full details of the newly added automation rule. If the request fails, an error is returned.