I'm creating a bot in PVA which the use case is strictly communication via Twilio SMS. This bot is mostly a QnA bot that does have some nested questions that could take the user 5-6 levels deep. Mostly Yes/No answers. I've created something in python that acts as a bridge between Twilio and PVA and I have this instance currently running in CloudRun (using the DirectLine URL). At the moment, I'm doing this w/o a database to store a session so basically a user texts and the code will store the session in a dictionary and continue using the conversationId until the expiration expires. I'm coming across some difficulty though with that the bot can easily recognize affirm/deny on the testing web chat but not in the SMS. So, I'm assuming some data via SMS may not be passing through Twilio properly.
Questions:
1. I'm unable to find complete working code out there to compare mine to for the DirectLine URL, because I guess this is the only way to integrate Twilio SMS with PVA?
2. Is the best ways to incorporate affirm/deny responses is a closed list Entity with Yes (and its respected synonyms) and No (with its respected synonyms)?
If there are easier ways out there to implement Twilio SMS with PVA. I'm all ears.
Also, if need be, I can share my code in a comment below if it will help. Thanks.
stampcoin
8
Artur Stepniak
5
Super User 2025 Season 1
Ekta Gupta
4