Tarequzzaman / Rasa-BMI-BOT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rasa Bangla chat Bot

For Rasa installation on your system please visit here

The main goal of this project is create a Bengali conversational chatbot using Rasa

custom response

Custom response is one of the feature of Rasa ai

To enable this use follow the steps:

1.add action to domain.yml

actions:
.
.
.
- action_hello_world
.
.
.
  1. Enable endpoints.yml
action_endpoint:
 url: "http://localhost:5055/webhook"
  1. Edit action.py
from typing import Any, Text, Dict, List

from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher


class ActionHelloWorld(Action):

    def name(self) -> Text:
        return "action_hello_world"

    def run(self, dispatcher: CollectingDispatcher,
            tracker: Tracker,
            domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:

        dispatcher.utter_message(text="Hello World!")

        return []
  1. for installation python sdk for custom action go here

Install Sdk using:

pip install rasa-sdk

rasa run actions

for run custom action

About


Languages

Language:Python 100.0%