Search conversation

Resolving a message

While configuring flows in Webex Connect, you will need to use this node to search for an existing conversation against the customer's channel identity and the business's channel asset. Some channels may require additional context to resolve a message for e.g. subject in email conversations. This node calls Webex Engage's 'Search conversation' API on Webex Engage. A detailed guide has been listed in the table below:

ChannelCustomer Address (customerAddress)Business Address (bizAddress)Additional context
SMSCustomer Mobile NumberBusiness Longcode
Facebook MessengerPage Scoped IDPage ID
LivechatUser IDApp IDThread ID, User ID and Browserfingerprint
EmailEmail IDBusiness MailboxSubject, To Recipients, Cc Recipients, In Reply To Header
Apple Messages for BusinessAMB User IDAMB Account ID
WhatsApp BusinessWhatsApp Mobile NumberWhatsApp Business Longcode
APIUser IDBusiness IDBusiness ID can be fetched from New Admin console.

📘

Configuring API channel

The Business Identity for API channel are only shown on the New Admin Console. If this option is not available on your Webex Engage Tenant, reach out to our Support Team.

Node screenshot - Search conversation

Search conversation

Search conversation

How to configure this node

  • Drag the node from the 'Node Palette' on the left by searching against the name 'Search conversation'
  • Double-click to open the node
  • Select the Method Name - Search conversation
  • Select your configured Authorization in the Node Authentication field. It is recommended that you set this to a Default Authentication that has been configured in WxEngage's Integrations screen under WxConnect's Integrations as all your nodes across flows will pick up the updated token once you re-authenticate from the Integrations screen.
  • Configure the remaining fields based on the table below:

SMS

  • Channel - SMS
    Set channel to SMS
  • Business Longcode / Shortcode`
    Choose your Business Longcode / Shortcode from the list of Assets shown in the dropdown
  • Customer Mobile Number - Generally set to$(n2.sms.msisdn)
    MSISDN from the output variables of the start node is the customer mobile number

Facebook Messenger

  • Channel - Facebook Messenger
    Set channel to Facebook Messenger
  • Page ID
    Choose your Facebook Messenger Page from the list of Assets shown in the dropdown
  • Page Scoped ID (PSID) - $(n2.messenger.psId)
    PSID from the output variables of the start node is the Facebook PS ID

Livechat

  • Channel - Livechat
    Set channel to Livechat
  • Livechat App
    Choose your Livechat App from the list of Assets shown in the dropdown
  • Livechat Thread ID - Generally set to$(n2.inappmessaging.threadId)
    threadId from the output variables of the start node is the Thread ID

OR

  • Livechat User ID - Generally set to$(n2.inappmessaging.userId)
    userId from the output variables of the start node is the Customer Address
  • Livechat Browser Fingerprint - Generally set to $(n2.inappmessaging.userId)
    userId from the output variables of the start node is the Livechat Browser Fingerprint

Email

  • Channel - Email
    Set channel to Email
  • Business Mailbox
    Choose your Business Mailbox from the list of Assets shown in the dropdown
  • From Address - Generally set to$(n2.email.emailId)
    emailId in the output variables of the start node is From Address
  • In Reply To - Generally set to$(n2.email.inReplyTo)
    InReplyTo in the output variables of the start node is the In Reply To
  • To Recipients - Generally set to$(n2.email.toAddresses)
    toAddresses in the output variables of the start node is the To Recipients
  • Cc Recipients - Generally set to$(n2.email.ccRecipients)
    ccRecipients in the output variables of the start node is the Cc Recipients
  • Email Subject - Generally set to$(n2.email.subject)
    subject in the output variables of the start node is the Subject

WhatsApp Business

  • Channel - WhatsApp
    Set channel to WhatsApp
  • WhatsApp Business Longcode
    Choose your WhatsApp Business Longcode from the list of Assets shown in the dropdown
  • WhatsApp Mobile Number - $(n2.whatsapp.waId)
    waId in the output variables of the start node is the WhatsApp Mobile Number

Apple Messages for Business

  • Channel - Apple Messages for Business
    Set channel to Apple Messages for Business
  • AMB Account ID
    Choose your Apple Messages for Business Account from the list of Assets shown in the dropdown
  • AMB User ID - $(n2.abc.userId)
    userId in the output variables of the start node is from AMB User ID

API

  • Channel - API
    Set channel to API
  • Business ID
    Choose your Business ID Asset from the list of Assets shown in the dropdown
  • User ID - Custom variable as per the channel in context
    Unique identifier of the customer as per the channel in context

Output variables

VariableDescription
conversationIdSystem generated unique identifier of the conversation that needs to be used subsequently in the Flow downstream
aliasIdAuxiliary reference identifier mapped to the conversation
conversationExistsBoolean value that denotes whether an open conversation exists against the customer
statusStatus enum - success/failed
teamId Team ID (GUID) that the conversation resides in currently
userIdLogin ID of the user that the conversation is assigned to. If the conversation is in queue, userId is returned as null and if it's a returning customer, it returns the Login ID of the last agent who handled the end-customer
apiStatusHTTP status code from the underlying response received from WxEngage's REST API
codeNumeric code received from WxEngage's API response
descriptionDescription received from WxEngage's API response
responsePayloadRaw WxEngage's API response payload (JSON string)

Node outcomes

CategoryOutcomeDescription
SuccessnoConversationFoundNew customer who has never interacted with the Business before
conversationInQueueExisting conversation found in the status: queued. Message to be resolved subsequently using the Append message node
conversationActiveExisting conversation found in the status: active. Message to be resolved subsequently using the Append message node
conversationOnHoldTBC Existing conversation found in the status: on hold. Message to be resolved subsequently using the Append message node
conversationClosedExisting conversation found in the status: closed. Message to be resolved subsequently by re-opening the last conversation or creating a new conversation as per the required business logic
ErrorsonTimeoutCould not receive an API response from WxEngage within the agreed time-out
onInvalidDataInvalid data configured in WxConnect node
onErrorError in WxConnect's middleware services
onInvalidChoiceInvalid choice
onauthorizationfailFailed to Authorize successfully. We recommend you to recheck your Node Authorization configurations in the Authorize Integration section
FailureAny other run time failures