Image for post
Image for post

Building your own Duplex AI agent using Rasa and Twilio

Josh Converse
Jul 19, 2018 · 8 min read

Overview

Image for post
Image for post

Telephony


Speech Transcription and Synthesis


Building Autonomous Agents

[
...
{
"text": "I'd like to get a beard trim on Saturday.",
"intent": "schedule",
"entities": [
{
"start": 18,
"end": 28,
"value": "beard trim",
"entity": "service_name"
},
]
},
...
]
## Schedule intent with valid service name
* schedule{"service_name":"beard trim"}
- action_service_lookup
- slot{"service_id": 12345}
- action_confirm_appointment
## Schedule intent with invalid service name
* schedule{"service_name":"jelly beans"}
- action_service_lookup
[note the lack of slot setting here compared to above]
- action_apologize_for_misunderstanding
- action_prompt_for_service
## Schedule intent with no service name
* schedule
- action_prompt_for_service

Putting it all together

Image for post
Image for post

Conclusion


Appendix

Resources


About the Author

Rasa Blog

Open source conversational AI

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store