5. Empower your bot with Actions
So far, you’ve created a bot that understands, responds and redirects the conversation based on certain variables. Learn now how to connect it to 3rd-party systems to increase its functionalities.
Last updated
So far, you’ve created a bot that understands, responds and redirects the conversation based on certain variables. Learn now how to connect it to 3rd-party systems to increase its functionalities.
Last updated
Action blocks empower chatbots to perform tasks beyond their built-in capabilities by leveraging the functionality of external tools and services, enhancing the overall user experience and utility of the bot.
Now that the bot asks the user info, let’s use the gathered info to send an email so that they receive their discount code.
To add a Send email Action:
From the canvas, open the Send email returning user block.
Go to its Settings.
Change its type to Action.
Back to the block content, scroll down to Send mail.
Fill the text fields with the following:
Click Save.
Do the same process for the Send email new user block, and fill it in with the following content:
Save your changes.
Let’s now wrap up the conversation by confirming users that their code has been send.
To add a confirmation message:
Drop a Message block to your canvas.
Go to the block Settings.
Change its name to Thanks.
Back to the block configuration, add a Text step.
Fill it with the following text: Thanks {userName}, we just send you an email with the code!
Save your changes.
Draw a Go-to connection from the two blocks that send email to the Thanks block.
Your canvas should look like so:
Make sure to test your bot. Is everything working as expected? If so, your conversation should like so:
And if you check your emails, you should have received something like this:
In this lesson, you’ve learned how to:
You’ve just built your whole flow, congratulations! The final step in your bot building journey will be to publish your bot.
6. Set up a channel and publish your botYour feedback on the tutorial means the world to us! Please, let us know what you think through this short form.