Warning: This document is for an old version of Rasa Core. The latest version is 0.14.5.

Dispatcher

The dispatcher is your connection to the outside world and allows you to send messages back to the user.

class rasa_core.dispatcher.Dispatcher(sender_id: str, output_channel: rasa_core.channels.channel.OutputChannel, nlg: rasa_core.nlg.generator.NaturalLanguageGenerator)[source]

Send messages back to user

utter_attachment(attachment: str) → None[source]

Send a message to the client with attachments.

utter_button_message(text: str, buttons: List[Dict[str, Any]], **kwargs) → None[source]

Sends a message with buttons to the output channel.

utter_button_template(template: str, buttons: List[Dict[str, Any]], tracker: DialogueStateTracker, silent_fail: bool = False, **kwargs) → None[source]

Sends a message template with buttons to the output channel.

utter_custom_message(*elements) → None[source]

Sends a message with custom elements to the output channel.

utter_message(text: str) → None[source]

“Send a text to the output channel

utter_response(message: Dict[str, Any]) → None[source]

Send a message to the client.

utter_template(template: str, tracker: DialogueStateTracker, silent_fail: bool = False, **kwargs) → None[source]

“Send a message to the client based on a template.

Have questions or feedback?

We have a very active support community on Rasa Community Forum that is happy to help you with your questions. If you have any feedback for us or a specific suggestion for improving the docs, feel free to share it by creating an issue on Rasa Core GitHub repository.