forked from alfredfrancis/ai-chatbot-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
86 lines (86 loc) · 2.15 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
openapi: 3.0.3
info:
title: AI Chatbot Framework
description: |-
This is the conversational API for AI Chatbot Framework
version: 1.0.11
externalDocs:
description: Find out more about AI Chatbot Framework
url: https://github.com/alfredfrancis/ai-chatbot-framework/
servers:
- url: http://localhost:8080/api
paths:
/v1:
post:
summary: Call the converse API to chat with the bot
operationId: converse
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Converse'
required: true
responses:
'200':
description: Successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/Converse'
'400':
description: Invalid input
components:
schemas:
Converse:
type: object
properties:
currentNode:
type: string
example: ask_name
complete:
type: boolean
example: false
context:
type: object
parameters:
type: array
items:
type: object
properties:
name:
type: string
example: full_name
type:
type: string
example: name
required:
type: boolean
example: true
extractedParameters:
type: object
example: {"country":"india"}
speechResponse:
type: array
items:
example: "Please enter your name"
type: string
intent:
type: object
properties:
object_id:
example: "88ea1ef0-5782-11ed-9b6a-0242ac120002"
type: string
confidence:
type: number
example: 1
id:
type: string
example: "ask_name"
input:
type: string
example: "My name is Alfred"
missingParameters:
type: array
items:
type: string
example: phone