-
Notifications
You must be signed in to change notification settings - Fork 1
/
PegarSlots_cal.com.yml
206 lines (204 loc) · 4.94 KB
/
PegarSlots_cal.com.yml
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
app:
description: ''
icon: 🤖
icon_background: '#FFEAD5'
mode: workflow
name: PegarSlots_cal.com
use_icon_as_answer_icon: false
kind: app
version: 0.1.2
workflow:
conversation_variables: []
environment_variables:
- description: ''
id: a777b4ea-4962-4d38-8f3d-977536f9c8de
name: eventTypeId
value: '1327981'
value_type: string
- description: ''
id: 8cd35818-b50f-4d32-8707-6b1d12ed6eb4
name: apical
value: cal_live_c2cc57ee71e54887536b9198bc6da9c1
value_type: secret
features:
file_upload:
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
opening_statement: ''
retriever_resource:
enabled: false
sensitive_word_avoidance:
enabled: false
speech_to_text:
enabled: false
suggested_questions: []
suggested_questions_after_answer:
enabled: false
text_to_speech:
enabled: false
language: ''
voice: ''
graph:
edges:
- data:
isInIteration: false
sourceType: start
targetType: http-request
id: 1728608583946-source-1728608756631-target
source: '1728608583946'
sourceHandle: source
target: '1728608756631'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: http-request
targetType: code
id: 1728608756631-source-1728609869086-target
source: '1728608756631'
sourceHandle: source
target: '1728609869086'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
sourceType: code
targetType: end
id: 1728609869086-source-1728609560256-target
source: '1728609869086'
sourceHandle: source
target: '1728609560256'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: ''
selected: false
title: Iniciar
type: start
variables:
- label: dataInicio (yyyy-MM-dd)
max_length: 48
options: []
required: true
type: text-input
variable: dataInicio
- label: dataFim (yyyy-MM-dd)
max_length: 48
options: []
required: true
type: text-input
variable: dataFim
height: 115
id: '1728608583946'
position:
x: 15
y: 244.68426593716714
positionAbsolute:
x: 15
y: 244.68426593716714
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
authorization:
config: null
type: no-auth
body:
data: ''
type: none
desc: ''
headers: Authorization:Bearer {{#env.apical#}}
method: get
params: 'eventTypeId:{{#env.eventTypeId#}}
startTime:{{#1728608583946.dataInicio#}}
endTime:{{#1728608583946.dataFim#}}'
selected: false
timeout:
max_connect_timeout: 0
max_read_timeout: 0
max_write_timeout: 0
title: Requisição HTTP
type: http-request
url: https://api.cal.com/v2/slots/available
variables: []
height: 105
id: '1728608756631'
position:
x: 333.65997264376824
y: 115.92185608892373
positionAbsolute:
x: 333.65997264376824
y: 115.92185608892373
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
desc: ''
outputs:
- value_selector:
- '1728609869086'
- result
variable: slots
selected: false
title: Fim
type: end
height: 89
id: '1728609560256'
position:
x: 1053.6578670314163
y: 171
positionAbsolute:
x: 1053.6578670314163
y: 171
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 243
- data:
code: "def main(httpResponse):\n body = json.loads(httpResponse)\n slots\
\ = body['data']['slots']\n return {\n \"result\": slots\n \
\ }"
code_language: python3
desc: ''
outputs:
result:
children: null
type: object
selected: true
title: Filtrar JSON
type: code
variables:
- value_selector:
- '1728608756631'
- body
variable: httpResponse
height: 53
id: '1728609869086'
position:
x: 746.9466757854104
y: 30.923325084532976
positionAbsolute:
x: 746.9466757854104
y: 30.923325084532976
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 243
viewport:
x: 266.5345559880923
y: 440.0612355335736
zoom: 1.5200640133112406