Repository navigation
Expand file tree
/
Copy pathspeaking-bots-openapi.json
More file actions
981 lines (981 loc) · 29 KB
/
Copy pathspeaking-bots-openapi.json
File metadata and controls
981 lines (981 loc) · 29 KB
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
{
"openapi": "3.1.0",
"info": {
"title": "Speaking Meeting Bot API",
"description": "API for deploying AI-powered speaking agents in video meetings. Combines MeetingBaas for meeting connectivity with Pipecat for voice AI processing.",
"version": "2026-10-22-v0.2.0"
},
"paths": {
"/bots": {
"post": {
"tags": [
"bots"
],
"summary": "Join Meeting",
"description": "Create and deploy a speaking bot in a meeting.\n\nLaunches an AI-powered bot that joins a video meeting through MeetingBaas\nand processes audio using Pipecat's voice AI framework.",
"operationId": "join_meeting_bots_post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BotRequest"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Bot successfully created and joined the meeting",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/JoinResponse"
}
}
}
},
"400": {
"description": "Bad request - Missing required fields or invalid data"
},
"500": {
"description": "Server error - Failed to create bot through MeetingBaas API"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/bots/{bot_id}": {
"delete": {
"tags": [
"bots"
],
"summary": "Leave Bot",
"description": "Remove a bot from a meeting by its ID.\n\nThis will:\n1. Call the MeetingBaas API to make the bot leave\n2. Close WebSocket connections if they exist\n3. Terminate the associated Pipecat process",
"operationId": "leave_bot_bots__bot_id__delete",
"parameters": [
{
"name": "bot_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Bot Id"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LeaveBotRequest"
}
}
}
},
"responses": {
"200": {
"description": "Bot successfully removed from meeting",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"title": "Response Leave Bot Bots Bot Id Delete"
}
}
}
},
"400": {
"description": "Bad request - Missing required fields or identifiers"
},
"404": {
"description": "Bot not found - No bot with the specified ID"
},
"500": {
"description": "Server error - Failed to remove bot from MeetingBaas API"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/personas/generate-image": {
"post": {
"tags": [
"personas"
],
"summary": "Generate Persona Image",
"description": "Generate an image for a persona using Replicate.",
"operationId": "generate_persona_image_personas_generate_image_post",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PersonaImageRequest"
}
}
}
},
"responses": {
"201": {
"description": "Image successfully generated",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PersonaImageResponse"
}
}
}
},
"400": {
"description": "Invalid request data"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"BotCredentials": {
"properties": {
"llm_api_key": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"format": "password",
"writeOnly": true
},
{
"type": "null"
}
],
"format": "password",
"title": "Llm Api Key",
"description": "API key for the LLM provider selected by llm_provider (OpenAI, Anthropic or Z.ai).",
"writeOnly": true
},
"stt_api_key": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"format": "password",
"writeOnly": true
},
{
"type": "null"
}
],
"format": "password",
"title": "Stt Api Key",
"description": "Deepgram API key for speech-to-text.",
"writeOnly": true
},
"tts_api_key": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"format": "password",
"writeOnly": true
},
{
"type": "null"
}
],
"format": "password",
"title": "Tts Api Key",
"description": "Cartesia API key for text-to-speech.",
"writeOnly": true
}
},
"additionalProperties": false,
"type": "object",
"title": "BotCredentials",
"description": "Bring-your-own provider keys for one bot.\n\nEvery field is optional; a key that is not supplied falls back to the\nserver's own configuration. Keys are handed to this bot's pipeline process\nonly, are never written to disk or logs, and are never returned by the API."
},
"BotRequest": {
"properties": {
"meeting_url": {
"type": "string",
"title": "Meeting Url",
"description": "URL of the Google Meet, Zoom or Microsoft Teams meeting to join"
},
"bot_name": {
"type": "string",
"title": "Bot Name",
"description": "Name to display for the bot in the meeting",
"default": ""
},
"personas": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array",
"maxItems": 10
},
{
"type": "null"
}
],
"title": "Personas",
"description": "List of persona names to use. The first available will be selected."
},
"bot_image": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Bot Image"
},
"entry_message": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Entry Message"
},
"extra": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"title": "Extra"
},
"enable_tools": {
"type": "boolean",
"title": "Enable Tools",
"default": true
},
"prompt": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Prompt"
},
"websocket_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Websocket Url",
"description": "Optional public WebSocket base URL override, e.g. wss://bot.example.com"
},
"turn_config": {
"anyOf": [
{
"$ref": "#/components/schemas/TurnConfig"
},
{
"type": "null"
}
],
"description": "Per-bot turn-taking tuning (VAD confidence/start_secs/stop_secs/min_volume)"
},
"prompt_data_sources": {
"anyOf": [
{
"items": {
"$ref": "#/components/schemas/PromptDataSource"
},
"type": "array",
"maxItems": 10
},
{
"type": "null"
}
],
"title": "Prompt Data Sources",
"description": "External text or URL data sources to append to the bot prompt"
},
"prompt_data_token_limit": {
"type": "integer",
"maximum": 50000.0,
"minimum": 0.0,
"title": "Prompt Data Token Limit",
"description": "Approximate total token cap for loaded prompt_data_sources. 0 disables loading.",
"default": 4000
},
"mcp": {
"anyOf": [
{
"$ref": "#/components/schemas/MCPConfig"
},
{
"type": "null"
}
],
"description": "MCP server/tool metadata and optional live connection details"
},
"mcp_profile": {
"anyOf": [
{
"type": "string",
"enum": [
"professional",
"personal",
"all"
]
},
{
"type": "null"
}
],
"title": "Mcp Profile",
"description": "Optional trusted local mcpproxy group preset. 'professional' connects to MCP_PROXY_PROFESSIONAL_URL or http://127.0.0.1:8111/mcp; 'personal' connects to MCP_PROXY_PERSONAL_URL or http://127.0.0.1:8110/mcp; 'all' connects to MCP_PROXY_ALL_URL or http://127.0.0.1:8109/mcp. The preset is merged with explicit mcp servers when both are supplied."
},
"mcp_profile_tool_access": {
"type": "string",
"enum": [
"read_only",
"read_write"
],
"title": "Mcp Profile Tool Access",
"description": "Tool exposure for mcp_profile presets. 'read_only' exposes retrieve_tools, call_tool_read, read_cache, and set_profile. 'read_write' also exposes call_tool_write. Presets never expose upstream_servers, call_tool_destructive, code_execution, registry, or quarantine tools.",
"default": "read_only"
},
"llm_provider": {
"anyOf": [
{
"type": "string",
"enum": [
"openai",
"anthropic",
"zai"
]
},
{
"type": "null"
}
],
"title": "Llm Provider",
"description": "LLM provider for this bot. Defaults to LLM_PROVIDER, then openai."
},
"llm_model": {
"anyOf": [
{
"type": "string",
"maxLength": 120,
"minLength": 1
},
{
"type": "null"
}
],
"title": "Llm Model",
"description": "Provider model for this bot. Defaults to provider-specific env vars."
},
"speech_speed": {
"anyOf": [
{
"type": "number",
"maximum": 1.5,
"minimum": 0.6
},
{
"type": "null"
}
],
"title": "Speech Speed",
"description": "TTS speaking speed multiplier between 0.6 and 1.5; values outside are rejected. Defaults to CARTESIA_TTS_SPEED, TTS_SPEED, SPEECH_SPEED, or the runner default."
},
"credentials": {
"anyOf": [
{
"$ref": "#/components/schemas/BotCredentials"
},
{
"type": "null"
}
],
"description": "Bring your own provider keys for this bot (LLM, speech-to-text, text-to-speech). Any key left out falls back to the server's own configuration. Keys are used only by this bot's pipeline and are never stored or returned."
},
"transcription_enabled": {
"type": "boolean",
"title": "Transcription Enabled",
"description": "Have MeetingBaas transcribe the recording once the meeting ends, with the bot's own turns attributed to it by name. Set false for a recording without a transcript.",
"default": true
},
"transcription_provider": {
"type": "string",
"enum": [
"gladia",
"deepgram",
"assemblyai",
"speechmatics",
"soniox"
],
"title": "Transcription Provider",
"description": "MeetingBaas speech-to-text provider for that transcript.",
"default": "gladia"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"meeting_url"
],
"title": "BotRequest",
"description": "Request model for creating a speaking bot in a meeting.",
"example": {
"bot_image": "https://example.com/bot-avatar.png",
"bot_name": "Meeting Assistant",
"enable_tools": true,
"entry_message": "Hello! I'm here to assist with the meeting.",
"extra": {
"company": "ACME Corp",
"meeting_purpose": "Weekly sync"
},
"llm_model": "claude-opus-4-8",
"llm_provider": "anthropic",
"mcp": {
"servers": [
{
"name": "crm",
"tool_allowlist": [
"get_account",
"list_recent_calls"
],
"tools": [
"get_account",
"list_recent_calls"
],
"transport": "streamable_http",
"url": "https://mcp.example.com"
}
]
},
"mcp_profile": "professional",
"mcp_profile_tool_access": "read_only",
"meeting_url": "https://meet.google.com/abc-defg-hij",
"personas": [
"helpful_assistant",
"meeting_facilitator"
],
"prompt": "You are Meeting Assistant, a concise and professional AI bot that helps summarize key points and keep the meeting on track. Speak clearly and stay on topic.",
"prompt_data_sources": [
{
"name": "CRM account notes",
"type": "url",
"url": "https://example.com/account-notes.md"
}
],
"prompt_data_token_limit": 3000,
"speech_speed": 1.15,
"websocket_url": "wss://bots.example.com"
}
},
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"JoinResponse": {
"properties": {
"bot_id": {
"type": "string",
"title": "Bot Id",
"description": "The MeetingBaas bot ID used for API operations with MeetingBaas"
}
},
"type": "object",
"required": [
"bot_id"
],
"title": "JoinResponse",
"description": "Response model for a bot joining a meeting"
},
"LeaveBotRequest": {
"properties": {
"bot_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Bot Id",
"description": "The MeetingBaas bot ID to remove from the meeting. This will also close the WebSocket connection made through Pipecat by this bot."
}
},
"additionalProperties": false,
"type": "object",
"title": "LeaveBotRequest",
"description": "Request model for making a bot leave a meeting"
},
"MCPConfig": {
"properties": {
"servers": {
"items": {
"$ref": "#/components/schemas/MCPServerConfig"
},
"type": "array",
"maxItems": 10,
"title": "Servers",
"description": "MCP servers to document and optionally connect for tool calls"
},
"instructions": {
"anyOf": [
{
"type": "string",
"maxLength": 4000
},
{
"type": "null"
}
],
"title": "Instructions",
"description": "Global MCP usage instructions for the bot"
}
},
"additionalProperties": false,
"type": "object",
"title": "MCPConfig",
"description": "Bot-level MCP configuration: the set of servers to expose plus global instructions."
},
"MCPServerConfig": {
"properties": {
"name": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"title": "Name"
},
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "Whether this server may be used. Disabled servers are documented but not connected.",
"default": true
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"description": "Remote MCP server URL. Required for http, streamable_http, and sse transports."
},
"headers": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Headers",
"description": "Optional HTTP headers for remote MCP servers. Use only when a server requires them."
},
"transport": {
"anyOf": [
{
"type": "string",
"enum": [
"http",
"streamable_http",
"sse"
]
},
{
"type": "null"
}
],
"title": "Transport",
"description": "Remote MCP transport. Omit for metadata-only servers that cannot execute tools."
},
"tools": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array",
"maxItems": 50
},
{
"type": "null"
}
],
"title": "Tools",
"description": "Known tool names exposed by this MCP server"
},
"tool_allowlist": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array",
"maxItems": 50
},
{
"type": "null"
}
],
"title": "Tool Allowlist",
"description": "Optional allowlist of MCP tool names this bot may call from this server."
},
"timeout_seconds": {
"anyOf": [
{
"type": "number",
"maximum": 300.0,
"minimum": 0.1
},
{
"type": "null"
}
],
"title": "Timeout Seconds",
"description": "Optional per-server connection/tool timeout in seconds."
},
"instructions": {
"anyOf": [
{
"type": "string",
"maxLength": 4000
},
{
"type": "null"
}
],
"title": "Instructions",
"description": "Operator instructions or constraints for this MCP server"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"name"
],
"title": "MCPServerConfig",
"description": "MCP server metadata and optional live connection details."
},
"PersonaImageRequest": {
"type": "object",
"required": [
"name",
"description"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the persona to generate an image for"
},
"description": {
"type": "string",
"description": "Detailed description of the persona's appearance and characteristics"
},
"gender": {
"type": "string",
"description": "Gender of the persona (optional)",
"enum": [
"male",
"female",
"non-binary"
]
},
"characteristics": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of specific characteristics or features of the persona"
}
}
},
"PersonaImageResponse": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the persona"
},
"image_url": {
"type": "string",
"description": "URL of the generated image"
},
"generated_at": {
"type": "string",
"format": "date-time",
"description": "Timestamp when the image was generated"
}
}
},
"PromptDataSource": {
"properties": {
"name": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"title": "Name",
"description": "Human-readable source name shown inside the prompt context block",
"default": "external_context"
},
"type": {
"type": "string",
"enum": [
"text",
"url"
],
"title": "Type",
"description": "Whether to load inline text or fetch an external HTTP(S) URL"
},
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Text",
"description": "Inline context. Required when type is text."
},
"url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Url",
"description": "HTTP(S) URL to fetch. Required when type is url."
},
"headers": {
"anyOf": [
{
"additionalProperties": {
"type": "string"
},
"type": "object"
},
{
"type": "null"
}
],
"title": "Headers",
"description": "Optional HTTP headers for URL sources. Avoid request-specific secrets unless needed."
},
"token_limit": {
"anyOf": [
{
"type": "integer",
"maximum": 50000.0,
"minimum": 1.0
},
{
"type": "null"
}
],
"title": "Token Limit",
"description": "Optional per-source token cap before the request-level cap is applied"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"type"
],
"title": "PromptDataSource",
"description": "External context to append to the bot prompt under a token budget."
},
"TurnConfig": {
"properties": {
"confidence": {
"anyOf": [
{
"type": "number",
"maximum": 1.0,
"minimum": 0.0
},
{
"type": "null"
}
],
"title": "Confidence",
"description": "VAD speech confidence threshold"
},
"start_secs": {
"anyOf": [
{
"type": "number",
"maximum": 5.0,
"minimum": 0.05
},
{
"type": "null"
}
],
"title": "Start Secs",
"description": "Sustained speech (seconds) before a turn registers"
},
"stop_secs": {
"anyOf": [
{
"type": "number",
"maximum": 10.0,
"minimum": 0.1
},
{
"type": "null"
}
],
"title": "Stop Secs",
"description": "Silence (seconds) before the bot considers the speaker done and replies"
},
"min_volume": {
"anyOf": [
{
"type": "number",
"maximum": 1.0,
"minimum": 0.0
},
{
"type": "null"
}
],
"title": "Min Volume",
"description": "Minimum input volume for VAD"
}
},
"additionalProperties": false,
"type": "object",
"title": "TurnConfig",
"description": "Per-bot voice-activity / turn-taking tuning.\n\nAll fields optional; unset fields fall back to the VAD_* env vars, then\npipecat defaults. Human-facing bots want snappy turn-taking (low\nstop_secs); bot-vs-bot meetings want patience (higher stop_secs and\nstart_secs) so the bots stop barging in on each other."
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
}
},
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "x-meeting-baas-api-key",
"description": "MeetingBaas API key for authentication"
}
}
},
"security": [
{
"ApiKeyAuth": []
}
],
"servers": [
{
"url": "https://speaking.meetingbaas.com",
"description": "Production server"
},
{
"url": "/",
"description": "Local development server"
}
]
}