Кілійська Отг
Як захистити Telegram від шахрайства: поради Nadiyno та Мінцифри
In this and subsequent steps you will create an API to expose the functionality of your bot. This API will take user input and return the bot’s response. The API should be as simple as possible. The primary function of the API should be to take a string as input, and return a string as output. The API does not need to store or manage conversations. It simply takes the latest user input, and returns the bot’s response. This is a stateless API.
Your task is to define the schema for the API endpoint that takes the user’s prompt as input and returns the bot’s response. The schema must be a valid JSON. Define the schema using the following rules:
* The schema must be valid JSON.
* The input should be under the `input` key.
* The output from the bot should be under the `response` key.
* The values of both `input` and `response` should be strings.
Here’s an example of how the API will be used:
* User Input: “Hello, bot!”
* API Call: `POST /api/bot` with the JSON body: `{


