How do i set up the app so that i get a text message on my phone. I did create sms trigger from journey and gave the verbiage but i was not getting texts, when i click on the chat option and send any message i’m receiving a message on chat bot console. The expectation is to receive the text on my mobile phone after i change the customer preference of communication.
To receive an SMS on an IRL phone, you’re going to make sure you’ve done two things:
- Published your application
- Configured a Twilio number to process the SMS messages associated with your application. You can read more about that here.
If both of these things have been done correctly, you can properly create an SMS communication channel between the configured Twilio number and the Actor (whose phone number you must set before initialization; for more on what Actors are and why they must be initialized, see this doc).
Does that answer your question? If not, could you go into a little more detail on your use case?
The setting up phone number as a resource is already done in resources and also at the app level. But no texts are being received on my mobile. My use case is i have built a basic app to change the customers communication preference, once the preference is selected the customer should be receiving a text message.
Did the intended flow work in the Preview window?
@Shivashankar_Yadav if you can export your app and attach it here, that would be helpful and can walk you through how to make it so your app can send SMS.
The flow works , until the customer communication preference is changed but i was not receiving the text message on the chat console unless and until i send a message to invoke the text.
What is your
actor.phone set as? if you look in the state viewer under “Entire” and look for “Actor” you should see
actor.phone should be equal to your phone number.
Also, is your SMS resource attached to your app in “Settings” as well?
Actor.phone is set to my phone. number and also the sms resource is attached to the app as well.
Seeing this error(400) in the debug console.
“Activity with id undefined does not exist for savepoint eb76c2d7-9e2c-4113-94e5-388cf198805b. This can be caused by the removal of: UI elements, voice/SMS prompts”
“ApplicationError: Activity with id undefined does not exist for savepoint eb76c2d7-9e2c-4113-94e5-388cf198805b. This can be caused by the removal of: UI elements, voice/SMS prompts at WebSocketServer.loadActivity (/18.0.411/runtime.js:427146:19) at runMicrotasks () at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Object.VoiceStart (/18.0.411/runtime.js:418806:22) at async serverRunActionChain (/18.0.411/runtime.js:417364:23) at async processVoiceEvent (/18.0.411/runtime.js:421198:13) at async processSessionEvent (/18.0.411/runtime.js:421584:18) at async /usr/src/app/1.0.1106/server/session-router-internal.js:118:25”
can you send a screenshot of the action chain where you are doing the set variable of session.phone > actor.phone as well as what your chatbot/notification looks like?
One thing that comes to mind is that you are not running the initialize actor action after you set the variable and then once the actor is initialized, you want to send the sms message.