Understanding events and triggers in the workflow system
ticket:updated
)Message object
Payload
Message attributes
Metadata
Name | Type | Options | Comments |
---|---|---|---|
Event Name | string | Required, Format: app:event | Unique event identifier |
Event Schema | object | Required | JSON Schema of event data |
Event Data | object | Required | Actual event payload |
Source | string | Required | Event origin identifier |
Timestamp | datetime | Required | Event occurrence time |
Operator | Description | Example |
---|---|---|
~eq | Equals | {"priority": {"~eq": "high"}} |
~neq | Not equals | {"status": {"~neq": "closed"}} |
~gt | Greater than | {"value": {"~gt": 100}} |
~gte | Greater than or equal | {"age": {"~gte": 18}} |
~lt | Less than | {"count": {"~lt": 5}} |
~lte | Less than or equal | {"score": {"~lte": 10}} |
Operator | Description | Example |
---|---|---|
~in | In array | {"status": {"~in": ["open", "pending"]}} |
~nin | Not in array | {"type": {"~nin": ["internal", "test"]}} |
Operator | Description | Example |
---|---|---|
~regex | Matches regex | {"email": {"~regex": ".*@company\\.com"}} |
~nregex | Does not match regex | {"url": {"~nregex": ".*\\.test\\.com"}} |
~starts | Starts with | {"name": {"~starts": "Test"}} |
~nstarts | Does not start with | {"ref": {"~nstarts": "DRAFT"}} |
~ends | Ends with | {"email": {"~ends": "@thena.ai"}} |
~nends | Does not end with | {"path": {"~nends": ".tmp"}} |
~contains | Contains | {"description": {"~contains": "urgent"}} |
~ncontains | Does not contain | {"title": {"~ncontains": "test"}} |
Operator | Description | Example |
---|---|---|
~isnull | Is null | {"assignee": {"~isnull": true}} |
~isempty | Is empty | {"tags": {"~isempty": true}} |
Operator | Description | Example |
---|---|---|
~and | All conditions must match | {"~and": [{"status": {"~eq": "open"}}, {"priority": {"~eq": "high"}}]} |
~or | Any condition must match | {"~or": [{"type": {"~eq": "bug"}}, {"priority": {"~eq": "high"}}]} |
org:created
- When a new organization is createdorg:updated
- When organization details are updatedorg:deleted
- When an organization is deletedorg:settings:updated
- When organization settings are modifiedteam:created
- When a new team is createdteam:updated
- When team details are updatedteam:deleted
- When a team is deletedteam:member:added
- When a member is added to a teamteam:member:removed
- When a member is removed from a teamuser:created
- When a new user is createduser:updated
- When user details are updateduser:deleted
- When a user is deleteduser:status:changed
- When a user’s status changesuser:role:changed
- When a user’s role is modifieduser:login
- When a user logs inuser:logout
- When a user logs outticket:created
- When a new ticket is createdticket:updated
- When ticket details are updatedticket:deleted
- When a ticket is deletedticket:status:changed
- When a ticket’s status changesticket:assigned
- When a ticket is assignedticket:unassigned
- When a ticket is unassignedticket:priority:changed
- When a ticket’s priority changesticket:comment:added
- When a comment is added to a ticketticket:comment:updated
- When a comment is updatedticket:comment:deleted
- When a comment is deletedticket:reaction:added
- When a reaction is added to a ticketticket:reaction:removed
- When a reaction is removed from a ticketticket:comment:reaction:added
- When a reaction is added to a commentticket:comment:reaction:removed
- When a reaction is removed from a commentaccount:created
- When a new account is createdaccount:updated
- When account details are updatedaccount:deleted
- When an account is deletedaccount:status:changed
- When an account’s status changescustomer:created
- When a new customer is createdcustomer:updated
- When customer details are updatedcustomer:deleted
- When a customer is deletedcustomer:merged
- When customer records are mergedcustom_field:created
- When a new custom field is createdcustom_field:updated
- When a custom field is updatedcustom_field:deleted
- When a custom field is deletedcustom_field:value:changed
- When a custom field value changesform:created
- When a new form is createdform:updated
- When a form is updatedform:deleted
- When a form is deletedform:submission:created
- When a form submission is receivedform:submission:updated
- When a form submission is updatedsla:created
- When a new SLA policy is createdsla:updated
- When an SLA policy is updatedsla:deleted
- When an SLA policy is deletedsla:breach:warning
- When an SLA is about to breachsla:breach:occurred
- When an SLA breach occursworkflow:created
- When a new workflow is createdworkflow:updated
- When a workflow is updatedworkflow:deleted
- When a workflow is deletedworkflow:executed
- When a workflow starts executionworkflow:step:completed
- When a workflow step is completedworkflow:completed
- When a workflow execution completescsat:survey:sent
- When a CSAT survey is sentcsat:response:received
- When a CSAT response is receivedcsat:feedback:updated
- When CSAT feedback is updatedapp:installed
- When an app is installed in a workspaceapp:uninstalled
- When an app is uninstalled from a workspaceapp:reinstalled
- When an app is reinstalled in a workspaceapp:mentioned
- When an app is mentioned in a conversationapp:settings:updated
- When app settings are modifiedsource:slack:message:received
- When a message is received from Slacksource:slack:thread:created
- When a new thread is created in Slacksource:slack:reaction:added
- When a reaction is added in Slacksource:msteams:message:received
- When a message is received from MS Teamssource:msteams:thread:created
- When a new thread is created in MS Teamssource:msteams:reaction:added
- When a reaction is added in MS Teamssource:email:received
- When an email is receivedsource:email:bounced
- When an email bouncessource:email:replied
- When an email is replied tosource:widget:opened
- When the widget is openedsource:widget:message:sent
- When a message is sent via widgetsource:widget:closed
- When the widget is closedtimestamp
fieldApp installation event (app:installed)
Ticket creation event (ticket:created)
CSAT response event (csat:response:received)
MS Teams message event (source:msteams:message:received)