These are the top-level variables that can be accessed in the context:
contact
the contact (contact)fields
the custom field values of the contact
(fields)urns
the URN values of the contact (urns)results
the current run results (results)input
the current input from the contact (input)run
the current run (run)child
the last child run (related_run)parent
the parent of the run (related_run)ticket
the open ticket for the contact (ticket)webhook
the last webhook call (webhook)node
the current node (node)globals
the global values (globals)trigger
the trigger that started this session (trigger)resume
the current resume that continued this session
(resume)The following types are found in the context:
Defaults to the name (text)
uuid
the UUID of the channel (text)name
the name of the channel (text)address
the address of the channel (text)Defaults to the name or URN (text)
uuid
the UUID of the contact (text)id
the numeric ID of the contact (text)first_name
the first name of the contact (text)name
the name of the contact (text)language
the language of the contact as 3-letter ISO
code (text)status
the status of the contact (text)created_on
the creation date of the contact (datetime)last_seen_on
the last seen date of the contact
(any)urns
the URNs belonging to the contact (text)urn
the preferred URN of the contact (text)groups
the groups the contact belongs to (group)fields
the custom field values of the contact
(fields)channel
the preferred channel of the contact (channel)Defaults to the name (text)
uuid
the UUID of the flow (text)name
the name of the flow (text)revision
the revision number of the flow (text)Defaults to the text and attachments (text)
uuid
the UUID of the input (text)created_on
the creation date of the input (datetime)channel
the channel that the input was received on (channel)urn
the contact URN that the input was received on (text)text
the text part of the input (text)attachments
any attachments on the input (text)external_id
the external ID of the input (text)Defaults to the contact name and flow UUID (text)
uuid
the UUID of the run (text)contact
the contact of the run (contact)flow
the flow of the run (flow)fields
the custom field values of the run (fields)urns
the URN values of the run (urns)results
the results saved by the run (any)status
the current status of the run (text)Defaults to the value (text)
name
the name of the result (text)value
the value of the result (text)category
the category of the result (text)category_localized
the localized category of the result
(text)input
the input of the result (text)extra
the optional extra data of the result (any)node_uuid
the UUID of the node in the flow that
generated the result (text)created_on
the creation date of the result (datetime)type
the type of resume that resumed this session (text)Defaults to the contact name and flow UUID (text)
uuid
the UUID of the run (text)contact
the contact of the run (contact)flow
the flow of the run (flow)status
the current status of the run (text)results
the results saved by the run (results)created_on
the creation date of the run (datetime)exited_on
the exit date of the run (datetime)uuid
the UUID of the ticket (text)topic
the topic of the ticket (any)assignee
the assignee of the ticket (any)Defaults to the name (text)
type
the type of trigger that started this session (text)params
the parameters passed to the trigger (any)keyword
the keyword match if this is a keyword trigger
(text)user
the user who started this session if this is a
manual trigger (user)origin
the origin of this session if this is a manual
trigger (text)ticket
the ticket if this is a ticket trigger (ticket)Defaults to the name or email (text)
email
the email address of the user (text)name
the name of the user (text)first_name
the first name of the user (text)Defaults to the method and URL (text)
status
the response status code (number)headers
the response headers (any)json
the response body if valid JSON (any)