maioradio.blogg.se

Chatbot whatsapp open source
Chatbot whatsapp open source





chatbot whatsapp open source

Once you have built an assistant that can handle the most important happy path stories, you can use a Rasa X tool to improve your assistant. Then, you check the request headers in the blueprint’s receive function before parsing the request body and throw an error response if the request does not include the token. If you want to protect the assistant’s /webhooks/tyntec/webhook endpoint against unauthorized messages, you can register the webhook with a custom header containing a bearer token. Look at the documentation of the TyntecOutputChannel ’s base class OutputChannel for more information about all the methods that can be overridden. Moreover, you send replies with buttons in cooperation with WhatsApp interactive messages. For example, you may want the assistant to collect specific information such as customer phone numbers.īy overriding the TyntecOutputChannel ’s methods (for example, send_image_url or send_attachment ), your assistant can reply with a snappy meme using an image message or with a funny cat video using a video message. Look at the official Handle Business Logic tutorial and level up your assistant. Utilizing Rasa's platform you can make your assistant smarter. Request = _compose_tyntec_send_whatsapp_text_request ( self. waba = name (cls ) : return "tyntec"Īsync def send_text_message ( self, recipient_id, text, **kwargs ) : OutputChannel ) :ĭef _init_ ( self, waba, tyntec_apikey, requests_session ) : self. text ( "OK" ) return custom_webhookĬlass TyntecOutputChannel (rasa. If you want to speak to the assistant, run 'rasa shell ' at any time inside the project directory.ĭef _compose_tyntec_send_whatsapp_text_request (apikey, from_, to, text ) : return requests. ? Do you want to speak to the trained assistant on the command line? 🤖 No Your Rasa model is trained and saved at ' /home /john -doe /my -great -assistant /models / 20210930 - 155824. It was written into the config file at '. The configuration for pipeline and policies was chosen automatically. ? Do you want to train an initial model? 💪🏽 Yes Create path? YesĬreated project directory at ' /home /john -doe /my -great -assistant '. my -great -assistant ' does not exist 🧐. ? Please enter a path where the project will be created. If you need some help, check out the documentation at https : ///docs/rasa. To get started quickly, an initial project will be created.







Chatbot whatsapp open source