Coghub icon

Coghub

Interagir com a API do Coghub

Actions129

Automation Rule → Add New Automation Rule To Account

AI-generated

Summary

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.

Links

Discussion