Skip to content

Latest commit

 

History

History

Rasa Chatbot Backend Service

Purpose

The purpose of the Rasa service is to provide a chatbot backend service for the Chatbot UI. It is connected to a custom Rasa action which will interact with a Qanary pipeline to answer specific knowledge graph questions.

The configuration is done using the standard configuration files of Rasa:

Interaction with the Rasa Server using the REST API

The Rasa server can be addressed directly by sending POST requests to http://localhost:5005/webhooks/rest/webhook (if you use the predefined settings of this project). A JSON body is expected. It follows the struture:

{
    "sender" : "{SENDER}",
    "message": "{MESSAGE TEXT}"
}

It returns a JSON message.

An example for a request using the curl command would be:

curl -X POST -H "Content-Type: application/json" -d '{"sender" : "sender", "message": "When was Albert Einstein born?"}' http://localhost:5005/webhooks/rest/webhook