Referencing Interaction Attributes

Use conditional expressions to reference interaction attributes such as your customer's phone number. For steps on finding the relevant IDs you need to write some of the expressions, see Finding Object IDs.

This table shows the types of interaction attributes that you can reference in conditions:

Name Description Example
interaction/channel-type The channel used for an interaction, by using a symbol that holds the value for an interaction attribute named channel-type. (= interaction/channel-type :sms)
interaction/contact-point The point of contact that the customer reached. For example, the Support email address, 1-800 number, or Twitter handle. (= interaction/contact-point "support@companyabc.com")
interaction/customer The customer identifier for the channel. For example, the customer's email address or phone number. (starts-with? interaction/customer "1506")
interaction/direction The direction of the interaction. For example, inbound or outbound. (= interaction/direction "inbound")
interaction/flow-id The ID of the flow that the interaction first matched to. Note: This does not update in the case of reusable flows or flow transfers. See Finding Object IDs for steps on locating flow IDs in CxEngage. (= interaction/flow-id "fdf792b0-939c-11e5-a2fa-c1ae7ae4ed37")
interaction/interaction.bcc The BCC address for the email interaction. (= interaction/interaction.bcc.address "name@company.com")
interaction/interaction.body The Body of the email interaction. (= contains? interaction/interaction.body "support")

interaction/interaction.cc

The CC addresses for the email interaction.
Can return multiple values in a map

(= interaction/interaction.cc.0.address "name@company.com")

interaction/interaction.from The From address for the email interaction. (= interaction/interaction.from "name@company.com")
interaction/interaction.to

The To addresses for the email interaction.
Can return multiple values in a map.

(= interaction/interaction.to.0.address "name@company.com")
interaction/tenant-id The tenant ID for the current interaction. See Finding Object IDs for steps on locating tenant IDs in CxEngage. (= interaction/tenant-id "35f6dce0-9391-11e5-a2fa-c1ae7ae4ed37")
interaction/version The version of the original flow. See Finding Object IDs for steps on locating flow version IDs in CxEngage (= interaction/version "e892f710-9eab-11e5-a275-c1ae7ae4ed37")