action server.yml

openapi: "3.0.2" info: title: "Rasa SDK - Action Server Endpoint" version: "0.0.0" description: >- API of the action server which is used by Rasa to execute custom actions. servers:

components: schemas: Response: oneOf: - $ref: '#/components/schemas/TextResponse' - $ref: '#/components/schemas/TemplateResponse' - $ref: '#/components/schemas/ButtonResponse' TextResponse: description: Text which the bot should utter. type: object properties: text: description: The text which should be uttered. type: string required: ["text"] TemplateResponse: description: Response template the bot should utter. type: object properties: template: description: Name of the template type: string additionalProperties: description: Keyword argument to fill the template type: string required: ["template"] ButtonResponse: description: Text with buttons which should be sent to the user. type: object properties: text: type: string description: Message buttons: type: array items: $ref: '#/components/schemas/Button' Button: description: >- A button which can be clicked by the user in the conversation. type: object properties: title: type: string description: The text on the button payload: type: string description: Payload which is sent if the button is pressed.