Rasa Open Source: Basic Name Bot

Original Source Here


The domain.yml file in rasa contains all the intents, entities, responses, or any other functionality used. Whenever we create any intent or entity then we must always add it here. Let me show you the content of my domain file:

domain.yml (1st part)

As it can be seen we have added the entity and intents used in the previous sections, here. We have also used slots. Slots are also called as bot’s memory. They act as a key-value store that can be used to store information the user provided (e.g name) as well as information gathered about the outside world.

Note: If the slot name is similar to that of the entity name then the value stored in the slot is automatically stored in the entity.

domain.yml (2nd part)

The above picture contains the response section of domain.yml. The actions in the story section are responses. Responses are messages that your assistant sends to the user. A response is usually only text, but can also include content like images and buttons.

Note: The name of responses should always start with utter_(the name you want to keep). In case of asking for a specific entity or slot, the response name should start with utter_ask_(entity/slot name). Well, one can put a custom format under a response.


Trending AI/ML Article Identified & Digested via Granola by Ramsey Elbasheer; a Machine-Driven RSS Bot

%d bloggers like this: