Twilio Provider
Twilio is a development platform that enables developers to build cloud communication applications and web systems. Twilio's communication APIs empower businesses to provide the appropriate communication experience for their customers within web and mobile applications. By leveraging Twilio's APIs, developers can swiftly integrate functionalities such as voice messages, video calls, text messages, and more into an application.
Twilio provides you with a Sandbox account so you can try the service for free. Register a Twilio account.
If you want to take a closer look at the process of setting up your Twilio environment to start creating your chatbot, click here.
Uses Cases If you want to give a quick overview of all the options that this provider allows you to implement in conjunction with builderbot you can go through the use cases, where in code we show some of the most important features of this provider. Cases such as sending buttons, lists, or native methods directly with Meta
Send Buttons
One of the most requested functions by users is the fact of sending buttons to generate more interactivity and more dynamic chatbots.
app.ts
const welcomeFlow = addKeyword<Provider, Database>(['template','plantilla'])
.addAction(async (ctx) => {
await provider.send(ctx.from,
'Agregar dos botones que permiten al cliente dar una respuesta mas rapida',
{
contentSid: 'HXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
}
)
})
Remember that the use of buttons, lists and other featured Whatsapp functionality needs to be a template authorized by the provider.
contentSid
is the id of the approved template you can use.
Content Quick
Remember for correct functionality you must have the message comply with the message template constructed.
Buttons Examples
Content Template Builder
The Content Template Builder is a Twilio product designed to create template messages and content-rich messages. It has an easy-to-use graphical interface built on a publicly accessible API. With the Content Template Builder, both engineers and non-technical users can create, approve and manage templates from the Twilio Console. With this system, it is possible to create templates faster, with fewer errors, while empowering the entire team to contribute. Both developers and non-technical users can build and submit templates for approval from the Twilio Console without writing a single line of code.