nlpia / nlpia-bot

A virtual assistant that actually assists!
http://manning.com/books/natural-language-processing-in-action
Other
56 stars 21 forks source link

Quiz skill Web API - MVP 1.0 #116

Open venomouse opened 3 years ago

venomouse commented 3 years ago

Original issue&disscussion: https://gitlab.com/tangibleai/qary/-/issues/82

Description:
User wants to interact with quiz-bot through external frontend that sends requests to qary's web API.

Option 1: (Probably easier) POST api.qary.ai Request body:

{
   user_id: <user_id>,
   bot_name: <script_name>,
   type: "text",
   text: "hey"
}

Option 2: (Inspired by Botpress's Converse API) POST api.qary.ai// Request body:

{
   type: "text",
   text: "hey"
}

Response format:

{
   type: "single_message_freetext"
   text_message_1: "<message_content>"
}