This repository contains an example project on how to get started with Amazon Connect Chat Message Streaming APIs to enable SMS and Facebook messenger channels for customer service.
MIT No Attribution
23
stars
39
forks
source link
Add new Contact Attribute containing the initial message sent, #9
I have modified sms.js to send the body (trim and toLower) of the text message to inboundhelper.js.
In inboundhelper.js I create a new contact attribute containing this message. This allows a customer to branch on the initial message sent to the solution. If a customer sends a text message with "Out" as the message, we can branch on the contents of the new attribute "chatframework_InitialMessage" to log an outage for the customer with the phone number in question (chatframework_VendorId).
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
I have modified sms.js to send the body (trim and toLower) of the text message to inboundhelper.js. In inboundhelper.js I create a new contact attribute containing this message. This allows a customer to branch on the initial message sent to the solution. If a customer sends a text message with "Out" as the message, we can branch on the contents of the new attribute "chatframework_InitialMessage" to log an outage for the customer with the phone number in question (chatframework_VendorId).
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.