-
Notifications
You must be signed in to change notification settings - Fork 16
/
bardeen.ai.yaml
77 lines (75 loc) · 2.35 KB
/
bardeen.ai.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
openapi: "3.0.2"
info:
title: Bardeen Magic Box Service
description: |
This service allows users to create Bardeen automations (playbooks) from natural language.
version: "1.0"
servers:
- url: https://api.prod.bardeen.ai/bot/
paths:
/query:
post:
operationId: QueryMagicBox
summary: Translate a natural language query into a Bardeen playbook.
requestBody:
content:
application/json:
schema:
type: object
properties:
query:
type: string
description: Natural language command.
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/QueryResponse"
"422":
description: Could not understand the provided query. Please rephrase and try again.
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: Error message.
"500":
description: Internal server error.
content:
application/json:
schema:
type: object
properties:
error:
type: string
description: Error message.
components:
schemas:
QueryResponse:
type: object
properties:
name:
type: string
description: Name of the generated playbook.
description:
type: string
description: Description of the generated playbook, in the form of a list of all the actions the automation will perform.
instructions:
type: string
description: Instructions to use the generated playbook.
shareId:
type: string
description: Unique identifier of the generated playbook.
shareUrl:
type: string
description: URL of a web page describing the playbook, where the user can confirm and execute it.
videoLink:
type: string
description: (Optional) URL to a video explaining the playbook.
assistantHint:
type: string
description: Additional hints to render or use to modify the result.