Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

feat(elevenlabs): add AI actions and output schemas (#15981)

Kishan Parmarc43336d88d71
diff --git a/bun.lock b/bun.lock
index 5e6d3e85e63..1183d640c25 100644
--- a/bun.lock
+++ b/bun.lock
@@ -120,7 +120,7 @@
},
"packages/core/execution": {
"name": "@activepieces/core-execution",
- "version": "0.23.4",
+ "version": "0.23.5",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
@@ -188,7 +188,7 @@
},
"packages/core/utils": {
"name": "@activepieces/core-utils",
- "version": "0.8.2",
+ "version": "0.8.3",
"dependencies": {
"deepmerge-ts": "8.0.2",
"ipaddr.js": "2.3.0",
@@ -2900,13 +2900,14 @@
},
"packages/pieces/community/elevenlabs": {
"name": "@activepieces/piece-elevenlabs",
- "version": "0.3.0",
+ "version": "0.4.0",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
"@activepieces/pieces-common": "workspace:*",
"@activepieces/pieces-framework": "workspace:*",
"@elevenlabs/elevenlabs-js": "2.4.1",
+ "form-data": "4.0.6",
},
"devDependencies": {
"tslib": "2.6.2",
@@ -3127,7 +3128,7 @@
},
"packages/pieces/community/figma": {
"name": "@activepieces/piece-figma",
- "version": "0.6.2",
+ "version": "0.6.3",
"dependencies": {
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*",
diff --git a/packages/pieces/community/elevenlabs/package.json b/packages/pieces/community/elevenlabs/package.json
index 43cc89892b1..a966d03da89 100644
--- a/packages/pieces/community/elevenlabs/package.json
+++ b/packages/pieces/community/elevenlabs/package.json
@@ -1,12 +1,13 @@
{
"name": "@activepieces/piece-elevenlabs",
- "version": "0.3.0",
+ "version": "0.4.0",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
"dependencies": {
"@activepieces/pieces-common": "workspace:*",
"@activepieces/pieces-framework": "workspace:*",
"@elevenlabs/elevenlabs-js": "2.4.1",
+ "form-data": "4.0.6",
"@activepieces/core-piece-types": "workspace:*",
"@activepieces/core-utils": "workspace:*"
},
diff --git a/packages/pieces/community/elevenlabs/src/index.ts b/packages/pieces/community/elevenlabs/src/index.ts
index 5b6bd0e4f29..e760bfb6a1e 100644
--- a/packages/pieces/community/elevenlabs/src/index.ts
+++ b/packages/pieces/community/elevenlabs/src/index.ts
@@ -1,80 +1,199 @@
-import { createPiece, PieceAuth, Property } from '@activepieces/pieces-framework';
+import { createPiece } from '@activepieces/pieces-framework';
import { createCustomApiCallAction } from '@activepieces/pieces-common';
-import { AppConnectionType, PieceCategory } from '@activepieces/pieces-framework';
+import { PieceCategory } from '@activepieces/pieces-framework';
+import { elevenlabsAuth } from './lib/auth';
import { textToSpeech } from './lib/actions/text-to-speech-action';
-import {
- createClient,
- ELEVEN_RESIDENCY,
- ElevenResidency,
- getApiKey,
- getRegionApiUrl
-} from './lib/common';
-
-const markdownDescription = `
-Follow these instructions to get your API Key:
-1. Visit your Elevenlabs dashboard.
-2. Once there, click on your account in the bottom left corner.
-3. Press Profile + API Key.
-4. Create or copy your API Key. Make sure to enable the following permissions: **user:read**, **text_to_speech**, **voices:read**, and **models**.
-`;
+import { addPronunciationRules } from './lib/actions/ai/add-pronunciation-rules';
+import { calculateAgentLlmUsage } from './lib/actions/ai/calculate-agent-llm-usage';
+import { calculateLlmUsage } from './lib/actions/ai/calculate-llm-usage';
+import { convertSpeechToSpeech } from './lib/actions/ai/convert-speech-to-speech';
+import { createAgentTest } from './lib/actions/ai/create-agent-test';
+import { createAgent } from './lib/actions/ai/create-agent';
+import { createAudioNativeProject } from './lib/actions/ai/create-audio-native-project';
+import { createDubbing } from './lib/actions/ai/create-dubbing';
+import { createKbFileDocument } from './lib/actions/ai/create-kb-file-document';
+import { createKbFolder } from './lib/actions/ai/create-kb-folder';
+import { createKbRagIndex } from './lib/actions/ai/create-kb-rag-index';
+import { createKbTextDocument } from './lib/actions/ai/create-kb-text-document';
+import { createKbUrlDocument } from './lib/actions/ai/create-kb-url-document';
+import { createPronunciationDictionaryFromFile } from './lib/actions/ai/create-pronunciation-dictionary-from-file';
+import { createPronunciationDictionaryFromRules } from './lib/actions/ai/create-pronunciation-dictionary-from-rules';
+import { createSecret } from './lib/actions/ai/create-secret';
+import { createTool } from './lib/actions/ai/create-tool';
+import { deleteDubbing } from './lib/actions/ai/delete-dubbing';
+import { deleteKbDocument } from './lib/actions/ai/delete-kb-document';
+import { deleteKbRagIndex } from './lib/actions/ai/delete-kb-rag-index';
+import { deleteSecret } from './lib/actions/ai/delete-secret';
+import { deleteTool } from './lib/actions/ai/delete-tool';
+import { downloadHistoryItems } from './lib/actions/ai/download-history-items';
+import { duplicateAgent } from './lib/actions/ai/duplicate-agent';
+import { findSimilarVoices } from './lib/actions/ai/find-similar-voices';
+import { getAgentKnowledgeBaseSize } from './lib/actions/ai/get-agent-knowledge-base-size';
+import { getAgentLink } from './lib/actions/ai/get-agent-link';
+import { getAgentTestSummaries } from './lib/actions/ai/get-agent-test-summaries';
+import { getAgentTest } from './lib/actions/ai/get-agent-test';
+import { getAgentWidget } from './lib/actions/ai/get-agent-widget';
+import { getAgent } from './lib/actions/ai/get-agent';
+import { getAudioNativeSettings } from './lib/actions/ai/get-audio-native-settings';
+import { getConversationSignedUrl } from './lib/actions/ai/get-conversation-signed-url';
+import { getDefaultVoiceSettings } from './lib/actions/ai/get-default-voice-settings';
+import { getDubbedFile } from './lib/actions/ai/get-dubbed-file';
+import { getDubbingTranscriptFormatted } from './lib/actions/ai/get-dubbing-transcript-formatted';
+import { getDubbingTranscript } from './lib/actions/ai/get-dubbing-transcript';
+import { getDubbing } from './lib/actions/ai/get-dubbing';
+import { getHistoryItemAudio } from './lib/actions/ai/get-history-item-audio';
+import { getHistoryItem } from './lib/actions/ai/get-history-item';
+import { getKbDocumentContent } from './lib/actions/ai/get-kb-document-content';
+import { getKbDocumentRagIndexes } from './lib/actions/ai/get-kb-document-rag-indexes';
+import { getKbDocumentSourceUrl } from './lib/actions/ai/get-kb-document-source-url';
+import { getKbDocument } from './lib/actions/ai/get-kb-document';
+import { getKbRagIndexOverview } from './lib/actions/ai/get-kb-rag-index-overview';
+import { getKbSummaries } from './lib/actions/ai/get-kb-summaries';
+import { getLiveConversationCount } from './lib/actions/ai/get-live-conversation-count';
+import { getPronunciationDictionaryVersion } from './lib/actions/ai/get-pronunciation-dictionary-version';
+import { getPronunciationDictionary } from './lib/actions/ai/get-pronunciation-dictionary';
+import { getSubscription } from './lib/actions/ai/get-subscription';
+import { getTestInvocation } from './lib/actions/ai/get-test-invocation';
+import { getTool } from './lib/actions/ai/get-tool';
+import { getUser } from './lib/actions/ai/get-user';
+import { getVoiceSettings } from './lib/actions/ai/get-voice-settings';
+import { getVoice } from './lib/actions/ai/get-voice';
+import { isolateAudio } from './lib/actions/ai/isolate-audio';
+import { listAgentTests } from './lib/actions/ai/list-agent-tests';
+import { listAgents } from './lib/actions/ai/list-agents';
+import { listBatchCalls } from './lib/actions/ai/list-batch-calls';
+import { listConversations } from './lib/actions/ai/list-conversations';
+import { listDubbings } from './lib/actions/ai/list-dubbings';
+import { listHistoryItems } from './lib/actions/ai/list-history-items';
+import { listKbDependentAgents } from './lib/actions/ai/list-kb-dependent-agents';
+import { listKbDocuments } from './lib/actions/ai/list-kb-documents';
+import { listModels } from './lib/actions/ai/list-models';
+import { listPhoneNumbers } from './lib/actions/ai/list-phone-numbers';
+import { listPronunciationDictionaries } from './lib/actions/ai/list-pronunciation-dictionaries';
+import { listSecrets } from './lib/actions/ai/list-secrets';
+import { listSharedVoices } from './lib/actions/ai/list-shared-voices';
+import { listTestInvocations } from './lib/actions/ai/list-test-invocations';
+import { listToolDependentAgents } from './lib/actions/ai/list-tool-dependent-agents';
+import { listTools } from './lib/actions/ai/list-tools';
+import { listVoices } from './lib/actions/ai/list-voices';
+import { moveKbDocument } from './lib/actions/ai/move-kb-document';
+import { moveKbDocumentsBulk } from './lib/actions/ai/move-kb-documents-bulk';
+import { removePronunciationRules } from './lib/actions/ai/remove-pronunciation-rules';
+import { resubmitTestInvocation } from './lib/actions/ai/resubmit-test-invocation';
+import { runAgentTests } from './lib/actions/ai/run-agent-tests';
+import { setAgentAvatar } from './lib/actions/ai/set-agent-avatar';
+import { simulateAgentConversation } from './lib/actions/ai/simulate-agent-conversation';
+import { updateAgentTest } from './lib/actions/ai/update-agent-test';
+import { updateAgent } from './lib/actions/ai/update-agent';
+import { updateAudioNativeContent } from './lib/actions/ai/update-audio-native-content';
+import { updateKbDocument } from './lib/actions/ai/update-kb-document';
+import { updatePronunciationDictionary } from './lib/actions/ai/update-pronunciation-dictionary';
+import { updateSecret } from './lib/actions/ai/update-secret';
+import { updateTool } from './lib/actions/ai/update-tool';
+import { getApiKey, getRegionApiUrl } from './lib/common';
const customApiCallDescription = `
Check [Elevenlabs API reference](https://elevenlabs.io/docs/api-reference/introduction)
for the list of available endpoints.
`
-export const elevenlabsAuth = PieceAuth.CustomAuth({
- required: true,
- description: markdownDescription,
- props: {
- region: Property.StaticDropdown<ElevenResidency>({
- displayName: 'Region',
- description: 'Use according URL in Custom API Call pieces',
- required: true,
- options: {
- placeholder: 'Please select your account region...',
- options: [
- { label: `default - ${ELEVEN_RESIDENCY['default'].base}`, value: 'default' },
- { label: `US - ${ELEVEN_RESIDENCY['us'].base}`, value: 'us' },
- { label: `EU - ${ELEVEN_RESIDENCY['eu'].base}`, value: 'eu' },
- ],
- },
- }),
- apiKey: PieceAuth.SecretText({
- displayName: 'API Key',
- required: true,
- }),
- },
- validate: async ({ auth }) => {
- try {
- const elevenlabs = createClient({
- type: AppConnectionType.CUSTOM_AUTH,
- props: auth,
- });
- await elevenlabs.user.get();
-
- return {
- valid: true,
- };
- } catch (error) {
- return {
- valid: false,
- error: 'Invalid API Key or Region.',
- };
- }
- },
-});
-
export const elevenlabs = createPiece({
displayName: 'ElevenLabs',
auth: elevenlabsAuth,
- minimumSupportedRelease: '0.30.0',
+ minimumSupportedRelease: '0.88.2',
logoUrl: 'https://cdn.activepieces.com/pieces/elevenlabs.png',
authors: ['pfernandez98'],
categories: [PieceCategory.ARTIFICIAL_INTELLIGENCE],
description: 'AI Voice Generator & Text to Speech',
actions: [
textToSpeech,
+ addPronunciationRules,
+ calculateAgentLlmUsage,
+ calculateLlmUsage,
+ convertSpeechToSpeech,
+ createAgentTest,
+ createAgent,
+ createAudioNativeProject,
+ createDubbing,
+ createKbFileDocument,
+ createKbFolder,
+ createKbRagIndex,
+ createKbTextDocument,
+ createKbUrlDocument,
+ createPronunciationDictionaryFromFile,
+ createPronunciationDictionaryFromRules,
+ createSecret,
+ createTool,
+ deleteDubbing,
+ deleteKbDocument,
+ deleteKbRagIndex,
+ deleteSecret,
+ deleteTool,
+ downloadHistoryItems,
+ duplicateAgent,
+ findSimilarVoices,
+ getAgentKnowledgeBaseSize,
+ getAgentLink,
+ getAgentTestSummaries,
+ getAgentTest,
+ getAgentWidget,
+ getAgent,
+ getAudioNativeSettings,
+ getConversationSignedUrl,
+ getDefaultVoiceSettings,
+ getDubbedFile,
+ getDubbingTranscriptFormatted,
+ getDubbingTranscript,
+ getDubbing,
+ getHistoryItemAudio,
+ getHistoryItem,
+ getKbDocumentContent,
+ getKbDocumentRagIndexes,
+ getKbDocumentSourceUrl,
+ getKbDocument,
+ getKbRagIndexOverview,
+ getKbSummaries,
+ getLiveConversationCount,
+ getPronunciationDictionaryVersion,
+ getPronunciationDictionary,
+ getSubscription,
+ getTestInvocation,
+ getTool,
+ getUser,
+ getVoiceSettings,
+ getVoice,
+ isolateAudio,
+ listAgentTests,
+ listAgents,
+ listBatchCalls,
+ listConversations,
+ listDubbings,
+ listHistoryItems,
+ listKbDependentAgents,
+ listKbDocuments,
+ listModels,
+ listPhoneNumbers,
+ listPronunciationDictionaries,
+ listSecrets,
+ listSharedVoices,
+ listTestInvocations,
+ listToolDependentAgents,
+ listTools,
+ listVoices,
+ moveKbDocument,
+ moveKbDocumentsBulk,
+ removePronunciationRules,
+ resubmitTestInvocation,
+ runAgentTests,
+ setAgentAvatar,
+ simulateAgentConversation,
+ updateAgentTest,
+ updateAgent,
+ updateAudioNativeContent,
+ updateKbDocument,
+ updatePronunciationDictionary,
+ updateSecret,
+ updateTool,
createCustomApiCallAction({
// it would be more useful to have hint for URL
description: customApiCallDescription,
@@ -94,3 +213,5 @@ export const elevenlabs = createPiece({
],
triggers: [],
});
+
+export { elevenlabsAuth };
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/add-pronunciation-rules.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/add-pronunciation-rules.ts
new file mode 100644
index 00000000000..0802445944a
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/add-pronunciation-rules.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsAddPronunciationRulesOutputSchema } from '../../output-schemas';
+
+export const addPronunciationRules = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_add_pronunciation_rules',
+ outputSchema: elevenlabsAddPronunciationRulesOutputSchema,
+ displayName: 'Add Pronunciation Rules',
+ description: 'Add rules to a pronunciation dictionary',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Adds alias or phoneme rules to a pronunciation dictionary and returns the new version_id. Each call creates a new dictionary version, so it is not idempotent.',
+ idempotent: false,
+ },
+ props: {
+ pronunciationDictionaryId: Property.ShortText({ displayName: 'Pronunciation Dictionary ID', description: 'The id from Create Pronunciation Dictionary or List Pronunciation Dictionaries', required: true }),
+ rules: Property.Json({ displayName: 'Rules', description: 'JSON array of rules, such as [{"type": "alias", "string_to_replace": "AP", "alias": "Activepieces"}] or {"type": "phoneme", "string_to_replace": "...", "phoneme": "...", "alphabet": "ipa"}', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/pronunciation-dictionaries/${encodeURIComponent(propsValue.pronunciationDictionaryId)}/add-rules`,
+ body: elevenlabsClient.compact({ values: { rules: propsValue.rules } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/calculate-agent-llm-usage.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/calculate-agent-llm-usage.ts
new file mode 100644
index 00000000000..df9713e66fa
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/calculate-agent-llm-usage.ts
@@ -0,0 +1,34 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCalculateAgentLlmUsageOutputSchema } from '../../output-schemas';
+
+export const calculateAgentLlmUsage = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_calculate_agent_llm_usage',
+ outputSchema: elevenlabsCalculateAgentLlmUsageOutputSchema,
+ displayName: 'Calculate Agent LLM Usage',
+ description: 'Estimate the LLM cost of an agent',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Estimates the expected LLM price per minute for an agent across the available LLMs. Read-only despite using POST.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents or Create Agent', required: true }),
+ promptLength: Property.Number({ displayName: 'Prompt Length', description: 'Prompt length in characters, defaults to the agent prompt', required: false }),
+ numberOfPages: Property.Number({ displayName: 'Number Of Pages', description: 'Knowledge base pages, defaults to the agent knowledge base', required: false }),
+ ragEnabled: Property.StaticDropdown({ displayName: 'Rag Enabled', description: 'Whether RAG is enabled', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/agent/${encodeURIComponent(propsValue.agentId)}/llm-usage/calculate`,
+ body: elevenlabsClient.compact({ values: { prompt_length: propsValue.promptLength, number_of_pages: propsValue.numberOfPages, rag_enabled: propsValue.ragEnabled } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/calculate-llm-usage.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/calculate-llm-usage.ts
new file mode 100644
index 00000000000..c7a011cc71a
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/calculate-llm-usage.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCalculateAgentLlmUsageOutputSchema } from '../../output-schemas';
+
+export const calculateLlmUsage = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_calculate_llm_usage',
+ outputSchema: elevenlabsCalculateAgentLlmUsageOutputSchema,
+ displayName: 'Calculate LLM Usage',
+ description: 'Estimate the LLM cost for a prompt and knowledge base size',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Estimates the expected LLM price per minute for a prompt length and knowledge base size across the available LLMs. Read-only despite using POST.',
+ idempotent: true,
+ },
+ props: {
+ promptLength: Property.Number({ displayName: 'Prompt Length', description: 'Prompt length in characters', required: true }),
+ numberOfPages: Property.Number({ displayName: 'Number Of Pages', description: 'Knowledge base pages', required: true }),
+ ragEnabled: Property.StaticDropdown({ displayName: 'Rag Enabled', description: 'Whether RAG is enabled', required: true, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/llm-usage/calculate`,
+ body: elevenlabsClient.compact({ values: { prompt_length: propsValue.promptLength, number_of_pages: propsValue.numberOfPages, rag_enabled: propsValue.ragEnabled } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/convert-speech-to-speech.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/convert-speech-to-speech.ts
new file mode 100644
index 00000000000..9d8370971f2
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/convert-speech-to-speech.ts
@@ -0,0 +1,46 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import FormData from 'form-data';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDubbedFileOutputSchema } from '../../output-schemas';
+
+export const convertSpeechToSpeech = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_convert_speech_to_speech',
+ outputSchema: elevenlabsGetDubbedFileOutputSchema,
+ displayName: 'Convert Speech To Speech',
+ description: 'Re-speak an audio recording in a different voice',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Converts an uploaded audio recording into speech in the chosen voice, keeping the original delivery, and returns the audio as a file. Use to change who is speaking in an existing recording. Not idempotent: each call consumes credits and produces new audio.',
+ idempotent: false,
+ },
+ props: {
+ voiceId: Property.ShortText({ displayName: 'Voice ID', description: 'The voice_id from List Voices', required: true }),
+ audio: Property.File({ displayName: 'Audio', description: 'Recording to convert', required: true }),
+ modelId: Property.ShortText({ displayName: 'Model ID', description: 'Speech-to-speech model id from List Models, such as eleven_multilingual_sts_v2', required: false }),
+ removeBackgroundNoise: Property.StaticDropdown({ displayName: 'Remove Background Noise', description: 'Remove background noise from the input', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ outputFormat: Property.StaticDropdown({ displayName: 'Output Format', description: 'Defaults to mp3_44100_128', required: false, options: { options: [{ label: 'mp3_44100_128', value: 'mp3_44100_128' }, { label: 'mp3_44100_192', value: 'mp3_44100_192' }, { label: 'mp3_22050_32', value: 'mp3_22050_32' }, { label: 'pcm_16000', value: 'pcm_16000' }, { label: 'pcm_44100', value: 'pcm_44100' }] } }),
+ },
+ async run({ auth, propsValue, files }) {
+ const formData = new FormData();
+ formData.append('audio', propsValue.audio.data, propsValue.audio.filename);
+ if (propsValue.modelId !== undefined) {
+ formData.append('model_id', String(propsValue.modelId));
+ }
+ if (propsValue.removeBackgroundNoise !== undefined) {
+ formData.append('remove_background_noise', String(propsValue.removeBackgroundNoise));
+ }
+ const audio = await elevenlabsClient.download({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/speech-to-speech/${encodeURIComponent(propsValue.voiceId)}`,
+ queryParams: { output_format: propsValue.outputFormat },
+ formData,
+ });
+ const file = await files.write({ fileName: `speech.${elevenlabsClient.extensionFor({ contentType: audio.contentType })}`, data: audio.data });
+ return { file, content_type: audio.contentType };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-agent-test.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-agent-test.ts
new file mode 100644
index 00000000000..c15468b3f59
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-agent-test.ts
@@ -0,0 +1,37 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateAgentTestOutputSchema } from '../../output-schemas';
+
+export const createAgentTest = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_agent_test',
+ outputSchema: elevenlabsCreateAgentTestOutputSchema,
+ displayName: 'Create Agent Test',
+ description: 'Create a response test for an agent',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Creates a test that checks how an agent responds: an llm test judges the reply against a success condition, a tool test checks tool calls, a simulation test runs a full conversation. Returns the test id, which Run Agent Tests takes. Not idempotent: each call creates another test.',
+ idempotent: false,
+ },
+ props: {
+ name: Property.ShortText({ displayName: 'Name', description: 'Test name', required: true }),
+ type: Property.StaticDropdown({ displayName: 'Type', description: 'Defaults to llm', required: false, options: { options: [{ label: 'llm', value: 'llm' }, { label: 'tool', value: 'tool' }, { label: 'simulation', value: 'simulation' }] } }),
+ successCondition: Property.LongText({ displayName: 'Success Condition', description: 'What a passing response must do', required: false }),
+ chatHistory: Property.Json({ displayName: 'Chat History', description: 'Conversation so far, as a JSON array of transcript turns', required: false }),
+ successExamples: Property.Json({ displayName: 'Success Examples', description: 'JSON array such as [{"response": "...", "type": "success"}]', required: false }),
+ failureExamples: Property.Json({ displayName: 'Failure Examples', description: 'JSON array such as [{"response": "...", "type": "failure"}]', required: false }),
+ dynamicVariables: Property.Json({ displayName: 'Dynamic Variables', description: 'Dynamic variables as a JSON object', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/agent-testing/create`,
+ body: elevenlabsClient.compact({ values: { name: propsValue.name, type: propsValue.type, success_condition: propsValue.successCondition, chat_history: propsValue.chatHistory, success_examples: propsValue.successExamples, failure_examples: propsValue.failureExamples, dynamic_variables: propsValue.dynamicVariables } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-agent.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-agent.ts
new file mode 100644
index 00000000000..55354e5ee40
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-agent.ts
@@ -0,0 +1,34 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateAgentOutputSchema } from '../../output-schemas';
+
+export const createAgent = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_agent',
+ outputSchema: elevenlabsCreateAgentOutputSchema,
+ displayName: 'Create Agent',
+ description: 'Create a conversational AI agent',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Creates a conversational AI agent from a conversation_config JSON (prompt, first message, voice, language) and returns its agent_id. Start from the config of an existing agent via Get Agent. Not idempotent: each call creates another agent.',
+ idempotent: false,
+ },
+ props: {
+ conversationConfig: Property.Json({ displayName: 'Conversation Config', description: 'Agent configuration, such as {"agent": {"prompt": {"prompt": "You are..."}, "first_message": "Hi"}}', required: true }),
+ platformSettings: Property.Json({ displayName: 'Platform Settings', description: 'Optional platform settings', required: false }),
+ name: Property.ShortText({ displayName: 'Name', description: 'Agent name', required: false }),
+ tags: Property.Array({ displayName: 'Tags', description: 'Tags for the agent', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/agents/create`,
+ body: elevenlabsClient.compact({ values: { conversation_config: propsValue.conversationConfig, platform_settings: propsValue.platformSettings, name: propsValue.name, tags: propsValue.tags } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-audio-native-project.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-audio-native-project.ts
new file mode 100644
index 00000000000..3dc224a44f6
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-audio-native-project.ts
@@ -0,0 +1,70 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import FormData from 'form-data';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateAudioNativeProjectOutputSchema } from '../../output-schemas';
+
+export const createAudioNativeProject = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_audio_native_project',
+ outputSchema: elevenlabsCreateAudioNativeProjectOutputSchema,
+ displayName: 'Create Audio Native Project',
+ description: 'Create an embeddable Audio Native player project',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Creates an Audio Native project (an embeddable audio player for an article) from an uploaded text or HTML file and returns the project_id and embed html_snippet. Set auto_convert to generate the audio right away. Not idempotent: each call creates a new project.',
+ idempotent: false,
+ },
+ props: {
+ name: Property.ShortText({ displayName: 'Name', description: 'Project name', required: true }),
+ title: Property.ShortText({ displayName: 'Title', description: 'Title shown in the player', required: false }),
+ author: Property.ShortText({ displayName: 'Author', description: 'Author shown in the player', required: false }),
+ file: Property.File({ displayName: 'File', description: 'Article as a .txt or .html file', required: false }),
+ voiceId: Property.ShortText({ displayName: 'Voice ID', description: 'voice_id from List Voices', required: false }),
+ modelId: Property.ShortText({ displayName: 'Model ID', description: 'Model id from List Models', required: false }),
+ textColor: Property.ShortText({ displayName: 'Text Color', description: 'Player text colour, such as #000000', required: false }),
+ backgroundColor: Property.ShortText({ displayName: 'Background Color', description: 'Player background colour, such as #FFFFFF', required: false }),
+ small: Property.StaticDropdown({ displayName: 'Small', description: 'Use the compact player', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ autoConvert: Property.StaticDropdown({ displayName: 'Auto Convert', description: 'Generate the audio right after creation', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const formData = new FormData();
+ formData.append('name', String(propsValue.name));
+ if (propsValue.title !== undefined) {
+ formData.append('title', String(propsValue.title));
+ }
+ if (propsValue.author !== undefined) {
+ formData.append('author', String(propsValue.author));
+ }
+ if (propsValue.file) {
+ formData.append('file', propsValue.file.data, propsValue.file.filename);
+ }
+ if (propsValue.voiceId !== undefined) {
+ formData.append('voice_id', String(propsValue.voiceId));
+ }
+ if (propsValue.modelId !== undefined) {
+ formData.append('model_id', String(propsValue.modelId));
+ }
+ if (propsValue.textColor !== undefined) {
+ formData.append('text_color', String(propsValue.textColor));
+ }
+ if (propsValue.backgroundColor !== undefined) {
+ formData.append('background_color', String(propsValue.backgroundColor));
+ }
+ if (propsValue.small !== undefined) {
+ formData.append('small', String(propsValue.small));
+ }
+ if (propsValue.autoConvert !== undefined) {
+ formData.append('auto_convert', String(propsValue.autoConvert));
+ }
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/audio-native`,
+ formData,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-dubbing.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-dubbing.ts
new file mode 100644
index 00000000000..7066b57bb6b
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-dubbing.ts
@@ -0,0 +1,66 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import FormData from 'form-data';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateDubbingOutputSchema } from '../../output-schemas';
+
+export const createDubbing = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_dubbing',
+ outputSchema: elevenlabsCreateDubbingOutputSchema,
+ displayName: 'Create Dubbing',
+ description: 'Dub a video or audio file into another language',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Starts a dubbing job that translates and re-voices a media file or a source URL into the target language, and returns a dubbing_id immediately. Poll Get Dubbing until status is dubbed, then fetch the result with Get Dubbed File. Not idempotent: each call starts a new billable job.',
+ idempotent: false,
+ },
+ props: {
+ file: Property.File({ displayName: 'File', description: 'Media file to dub. Provide this or a Source URL', required: false }),
+ sourceUrl: Property.ShortText({ displayName: 'Source Url', description: 'URL of the media to dub, such as a YouTube link', required: false }),
+ name: Property.ShortText({ displayName: 'Name', description: 'Name of the dubbing project', required: false }),
+ targetLang: Property.ShortText({ displayName: 'Target Lang', description: 'Language code to dub into, such as es', required: true }),
+ sourceLang: Property.ShortText({ displayName: 'Source Lang', description: 'Language code of the original, or auto', required: false }),
+ numSpeakers: Property.Number({ displayName: 'Num Speakers', description: 'Number of speakers, 0 detects automatically', required: false }),
+ watermark: Property.StaticDropdown({ displayName: 'Watermark', description: 'Add a watermark', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ dropBackgroundAudio: Property.StaticDropdown({ displayName: 'Drop Background Audio', description: 'Remove the background audio', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ highestResolution: Property.StaticDropdown({ displayName: 'Highest Resolution', description: 'Use the highest video resolution', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const formData = new FormData();
+ if (propsValue.file) {
+ formData.append('file', propsValue.file.data, propsValue.file.filename);
+ }
+ if (propsValue.sourceUrl !== undefined) {
+ formData.append('source_url', String(propsValue.sourceUrl));
+ }
+ if (propsValue.name !== undefined) {
+ formData.append('name', String(propsValue.name));
+ }
+ formData.append('target_lang', String(propsValue.targetLang));
+ if (propsValue.sourceLang !== undefined) {
+ formData.append('source_lang', String(propsValue.sourceLang));
+ }
+ if (propsValue.numSpeakers !== undefined) {
+ formData.append('num_speakers', String(propsValue.numSpeakers));
+ }
+ if (propsValue.watermark !== undefined) {
+ formData.append('watermark', String(propsValue.watermark));
+ }
+ if (propsValue.dropBackgroundAudio !== undefined) {
+ formData.append('drop_background_audio', String(propsValue.dropBackgroundAudio));
+ }
+ if (propsValue.highestResolution !== undefined) {
+ formData.append('highest_resolution', String(propsValue.highestResolution));
+ }
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/dubbing`,
+ formData,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-file-document.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-file-document.ts
new file mode 100644
index 00000000000..42f09e00f51
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-file-document.ts
@@ -0,0 +1,42 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import FormData from 'form-data';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateKbFileDocumentOutputSchema } from '../../output-schemas';
+
+export const createKbFileDocument = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_kb_file_document',
+ outputSchema: elevenlabsCreateKbFileDocumentOutputSchema,
+ displayName: 'Create KB File Document',
+ description: 'Add an uploaded file to the knowledge base',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Uploads a file (pdf, txt, docx, html or epub) as a knowledge base document and returns its id. Not idempotent: each call adds another document.',
+ idempotent: false,
+ },
+ props: {
+ file: Property.File({ displayName: 'File', description: 'File to add', required: true }),
+ name: Property.ShortText({ displayName: 'Name', description: 'Document name', required: false }),
+ parentFolderId: Property.ShortText({ displayName: 'Parent Folder ID', description: 'Folder id to place it in, from List KB Documents', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const formData = new FormData();
+ formData.append('file', propsValue.file.data, propsValue.file.filename);
+ if (propsValue.name !== undefined) {
+ formData.append('name', String(propsValue.name));
+ }
+ if (propsValue.parentFolderId !== undefined) {
+ formData.append('parent_folder_id', String(propsValue.parentFolderId));
+ }
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/knowledge-base/file`,
+ formData,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-folder.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-folder.ts
new file mode 100644
index 00000000000..b6d2372992e
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-folder.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateKbFileDocumentOutputSchema } from '../../output-schemas';
+
+export const createKbFolder = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_kb_folder',
+ outputSchema: elevenlabsCreateKbFileDocumentOutputSchema,
+ displayName: 'Create KB Folder',
+ description: 'Create a knowledge base folder',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Creates a folder in the knowledge base and returns its id. Not idempotent: each call creates another folder.',
+ idempotent: false,
+ },
+ props: {
+ name: Property.ShortText({ displayName: 'Name', description: 'Folder name', required: true }),
+ parentFolderId: Property.ShortText({ displayName: 'Parent Folder ID', description: 'Folder id to place it in, from List KB Documents', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/knowledge-base/folder`,
+ body: elevenlabsClient.compact({ values: { name: propsValue.name, parent_folder_id: propsValue.parentFolderId } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-rag-index.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-rag-index.ts
new file mode 100644
index 00000000000..bbd3cf31da6
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-rag-index.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateKbRagIndexOutputSchema } from '../../output-schemas';
+
+export const createKbRagIndex = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_kb_rag_index',
+ outputSchema: elevenlabsCreateKbRagIndexOutputSchema,
+ displayName: 'Create KB RAG Index',
+ description: 'Build a RAG index for a document',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Starts building a RAG index for a knowledge base document with the chosen embedding model and returns the index. Poll Get KB Document RAG Indexes until its status is succeeded. Re-running for the same model returns the existing index.',
+ idempotent: true,
+ },
+ props: {
+ documentationId: Property.ShortText({ displayName: 'Documentation ID', description: 'The document id from List KB Documents or a create action', required: true }),
+ model: Property.StaticDropdown({ displayName: 'Model', description: 'Embedding model', required: true, options: { options: [{ label: 'e5_mistral_7b_instruct', value: 'e5_mistral_7b_instruct' }, { label: 'multilingual_e5_large_instruct', value: 'multilingual_e5_large_instruct' }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/knowledge-base/${encodeURIComponent(propsValue.documentationId)}/rag-index`,
+ body: elevenlabsClient.compact({ values: { model: propsValue.model } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-text-document.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-text-document.ts
new file mode 100644
index 00000000000..54190248407
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-text-document.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateKbFileDocumentOutputSchema } from '../../output-schemas';
+
+export const createKbTextDocument = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_kb_text_document',
+ outputSchema: elevenlabsCreateKbFileDocumentOutputSchema,
+ displayName: 'Create KB Text Document',
+ description: 'Add text to the knowledge base',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Adds a text snippet as a knowledge base document and returns its id. Not idempotent: each call adds another document.',
+ idempotent: false,
+ },
+ props: {
+ text: Property.LongText({ displayName: 'Text', description: 'The document text', required: true }),
+ name: Property.ShortText({ displayName: 'Name', description: 'Document name', required: false }),
+ parentFolderId: Property.ShortText({ displayName: 'Parent Folder ID', description: 'Folder id to place it in, from List KB Documents', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/knowledge-base/text`,
+ body: elevenlabsClient.compact({ values: { text: propsValue.text, name: propsValue.name, parent_folder_id: propsValue.parentFolderId } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-url-document.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-url-document.ts
new file mode 100644
index 00000000000..cc7c709d6c4
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-kb-url-document.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateKbFileDocumentOutputSchema } from '../../output-schemas';
+
+export const createKbUrlDocument = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_kb_url_document',
+ outputSchema: elevenlabsCreateKbFileDocumentOutputSchema,
+ displayName: 'Create KB URL Document',
+ description: 'Add a web page to the knowledge base',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Scrapes a web page and adds it as a knowledge base document, returning its id. Not idempotent: each call adds another document.',
+ idempotent: false,
+ },
+ props: {
+ url: Property.ShortText({ displayName: 'Url', description: 'Page URL', required: true }),
+ name: Property.ShortText({ displayName: 'Name', description: 'Document name', required: false }),
+ parentFolderId: Property.ShortText({ displayName: 'Parent Folder ID', description: 'Folder id to place it in, from List KB Documents', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/knowledge-base/url`,
+ body: elevenlabsClient.compact({ values: { url: propsValue.url, name: propsValue.name, parent_folder_id: propsValue.parentFolderId } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-pronunciation-dictionary-from-file.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-pronunciation-dictionary-from-file.ts
new file mode 100644
index 00000000000..50761e0c242
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-pronunciation-dictionary-from-file.ts
@@ -0,0 +1,42 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import FormData from 'form-data';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreatePronunciationDictionaryFromRulesOutputSchema } from '../../output-schemas';
+
+export const createPronunciationDictionaryFromFile = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_pronunciation_dictionary_from_file',
+ outputSchema: elevenlabsCreatePronunciationDictionaryFromRulesOutputSchema,
+ displayName: 'Create Pronunciation Dictionary From File',
+ description: 'Create a pronunciation dictionary from a PLS file',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Creates a pronunciation dictionary from an uploaded PLS file and returns its id and version_id. Not idempotent: each call creates another dictionary.',
+ idempotent: false,
+ },
+ props: {
+ name: Property.ShortText({ displayName: 'Name', description: 'Dictionary name', required: true }),
+ file: Property.File({ displayName: 'File', description: 'PLS file with the rules', required: false }),
+ description: Property.ShortText({ displayName: 'Description', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const formData = new FormData();
+ formData.append('name', String(propsValue.name));
+ if (propsValue.file) {
+ formData.append('file', propsValue.file.data, propsValue.file.filename);
+ }
+ if (propsValue.description !== undefined) {
+ formData.append('description', String(propsValue.description));
+ }
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/pronunciation-dictionaries/add-from-file`,
+ formData,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-pronunciation-dictionary-from-rules.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-pronunciation-dictionary-from-rules.ts
new file mode 100644
index 00000000000..5607dc5cefd
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-pronunciation-dictionary-from-rules.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreatePronunciationDictionaryFromRulesOutputSchema } from '../../output-schemas';
+
+export const createPronunciationDictionaryFromRules = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_pronunciation_dictionary_from_rules',
+ outputSchema: elevenlabsCreatePronunciationDictionaryFromRulesOutputSchema,
+ displayName: 'Create Pronunciation Dictionary From Rules',
+ description: 'Create a pronunciation dictionary from rules',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Creates a pronunciation dictionary from a list of alias or phoneme rules and returns its id and version_id. Not idempotent: each call creates another dictionary.',
+ idempotent: false,
+ },
+ props: {
+ name: Property.ShortText({ displayName: 'Name', description: 'Dictionary name', required: true }),
+ rules: Property.Json({ displayName: 'Rules', description: 'JSON array of rules, such as [{"type": "alias", "string_to_replace": "AP", "alias": "Activepieces"}] or {"type": "phoneme", "string_to_replace": "...", "phoneme": "...", "alphabet": "ipa"}', required: true }),
+ description: Property.ShortText({ displayName: 'Description', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/pronunciation-dictionaries/add-from-rules`,
+ body: elevenlabsClient.compact({ values: { name: propsValue.name, rules: propsValue.rules, description: propsValue.description } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-secret.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-secret.ts
new file mode 100644
index 00000000000..1f5b9997958
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-secret.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateSecretOutputSchema } from '../../output-schemas';
+
+export const createSecret = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_secret',
+ outputSchema: elevenlabsCreateSecretOutputSchema,
+ displayName: 'Create Secret',
+ description: 'Create a workspace secret',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Stores a secret value for use by agent tools and returns its secret_id. The value cannot be read back. Not idempotent: each call creates another secret.',
+ idempotent: false,
+ },
+ props: {
+ name: Property.ShortText({ displayName: 'Name', description: 'Secret name', required: true }),
+ value: Property.ShortText({ displayName: 'Value', description: 'Secret value', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/secrets`,
+ body: elevenlabsClient.compact({ values: { name: propsValue.name, value: propsValue.value, type: 'new' } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-tool.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-tool.ts
new file mode 100644
index 00000000000..57e56a79eb7
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/create-tool.ts
@@ -0,0 +1,31 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateToolOutputSchema } from '../../output-schemas';
+
+export const createTool = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_create_tool',
+ outputSchema: elevenlabsCreateToolOutputSchema,
+ displayName: 'Create Tool',
+ description: 'Create an agent tool',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Creates a webhook, client or system tool for agents from a tool_config JSON and returns its id. Not idempotent: each call creates another tool.',
+ idempotent: false,
+ },
+ props: {
+ toolConfig: Property.Json({ displayName: 'Tool Config', description: 'Tool configuration, such as {"type": "webhook", "name": "lookup_order", "description": "...", "api_schema": {"url": "https://...", "method": "GET"}}', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/tools`,
+ body: elevenlabsClient.compact({ values: { tool_config: propsValue.toolConfig } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-dubbing.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-dubbing.ts
new file mode 100644
index 00000000000..da395bb73b8
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-dubbing.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsDeleteDubbingOutputSchema } from '../../output-schemas';
+
+export const deleteDubbing = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_delete_dubbing',
+ outputSchema: elevenlabsDeleteDubbingOutputSchema,
+ displayName: 'Delete Dubbing',
+ description: 'Permanently delete a dubbing project',
+ audience: 'ai',
+ classification: 'DESTRUCTIVE',
+ aiMetadata: {
+ description: 'Permanently deletes a dubbing project and its results. Cannot be undone; a second call on the same id fails.',
+ idempotent: false,
+ },
+ props: {
+ dubbingId: Property.ShortText({ displayName: 'Dubbing ID', description: 'The dubbing_id from List Dubbings', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.DELETE,
+ path: `/v1/dubbing/${encodeURIComponent(propsValue.dubbingId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-kb-document.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-kb-document.ts
new file mode 100644
index 00000000000..30aad42d947
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-kb-document.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsDeleteKbDocumentOutputSchema } from '../../output-schemas';
+
+export const deleteKbDocument = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_delete_kb_document',
+ outputSchema: elevenlabsDeleteKbDocumentOutputSchema,
+ displayName: 'Delete KB Document',
+ description: 'Delete a knowledge base document or folder',
+ audience: 'ai',
+ classification: 'DESTRUCTIVE',
+ aiMetadata: {
+ description: 'Permanently deletes a knowledge base document or folder. Set force to delete it even when agents depend on it. A second call on the same id fails.',
+ idempotent: false,
+ },
+ props: {
+ documentationId: Property.ShortText({ displayName: 'Documentation ID', description: 'The document id from List KB Documents or a create action', required: true }),
+ force: Property.StaticDropdown({ displayName: 'Force', description: 'Delete even if agents use it', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.DELETE,
+ path: `/v1/convai/knowledge-base/${encodeURIComponent(propsValue.documentationId)}`,
+ queryParams: { force: propsValue.force },
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-kb-rag-index.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-kb-rag-index.ts
new file mode 100644
index 00000000000..c3ba6be20c1
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-kb-rag-index.ts
@@ -0,0 +1,31 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsDeleteKbDocumentOutputSchema } from '../../output-schemas';
+
+export const deleteKbRagIndex = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_delete_kb_rag_index',
+ outputSchema: elevenlabsDeleteKbDocumentOutputSchema,
+ displayName: 'Delete KB RAG Index',
+ description: 'Delete a RAG index',
+ audience: 'ai',
+ classification: 'DESTRUCTIVE',
+ aiMetadata: {
+ description: 'Deletes one RAG index of a knowledge base document. The rag_index_id comes from Get KB Document RAG Indexes.',
+ idempotent: false,
+ },
+ props: {
+ documentationId: Property.ShortText({ displayName: 'Documentation ID', description: 'The document id from List KB Documents or a create action', required: true }),
+ ragIndexId: Property.ShortText({ displayName: 'Rag Index ID', description: 'The index id from Get KB Document RAG Indexes', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.DELETE,
+ path: `/v1/convai/knowledge-base/${encodeURIComponent(propsValue.documentationId)}/rag-index/${encodeURIComponent(propsValue.ragIndexId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-secret.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-secret.ts
new file mode 100644
index 00000000000..19df63d421c
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-secret.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsDeleteKbDocumentOutputSchema } from '../../output-schemas';
+
+export const deleteSecret = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_delete_secret',
+ outputSchema: elevenlabsDeleteKbDocumentOutputSchema,
+ displayName: 'Delete Secret',
+ description: 'Delete a workspace secret',
+ audience: 'ai',
+ classification: 'DESTRUCTIVE',
+ aiMetadata: {
+ description: 'Permanently deletes a workspace secret. A second call on the same id fails.',
+ idempotent: false,
+ },
+ props: {
+ secretId: Property.ShortText({ displayName: 'Secret ID', description: 'The secret_id from List Secrets', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.DELETE,
+ path: `/v1/convai/secrets/${encodeURIComponent(propsValue.secretId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-tool.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-tool.ts
new file mode 100644
index 00000000000..71a98dc2e00
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/delete-tool.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsDeleteKbDocumentOutputSchema } from '../../output-schemas';
+
+export const deleteTool = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_delete_tool',
+ outputSchema: elevenlabsDeleteKbDocumentOutputSchema,
+ displayName: 'Delete Tool',
+ description: 'Delete an agent tool',
+ audience: 'ai',
+ classification: 'DESTRUCTIVE',
+ aiMetadata: {
+ description: 'Permanently deletes a tool. Set force to delete it even when agents use it. A second call on the same id fails.',
+ idempotent: false,
+ },
+ props: {
+ toolId: Property.ShortText({ displayName: 'Tool ID', description: 'The tool id from List Tools or Create Tool', required: true }),
+ force: Property.StaticDropdown({ displayName: 'Force', description: 'Delete even if agents use it', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.DELETE,
+ path: `/v1/convai/tools/${encodeURIComponent(propsValue.toolId)}`,
+ queryParams: { force: propsValue.force },
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/download-history-items.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/download-history-items.ts
new file mode 100644
index 00000000000..943c5578cb5
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/download-history-items.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDubbedFileOutputSchema } from '../../output-schemas';
+
+export const downloadHistoryItems = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_download_history_items',
+ outputSchema: elevenlabsGetDubbedFileOutputSchema,
+ displayName: 'Download History Items',
+ description: 'Download generated audio as a file',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Downloads one or more generated audio items and returns them as a file (a single audio file for one item, a zip for several). The history_item_ids come from List History Items.',
+ idempotent: true,
+ },
+ props: {
+ historyItemIds: Property.Array({ displayName: 'History Item Ids', description: 'The history_item_ids from List History Items', required: true }),
+ outputFormat: Property.StaticDropdown({ displayName: 'Output Format', description: 'Leave empty to keep the original format', required: false, options: { options: [{ label: 'wav', value: 'wav' }] } }),
+ },
+ async run({ auth, propsValue, files }) {
+ const audio = await elevenlabsClient.download({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/history/download`,
+ body: elevenlabsClient.compact({ values: { history_item_ids: propsValue.historyItemIds, output_format: propsValue.outputFormat } }),
+ });
+ const file = await files.write({ fileName: `history.${elevenlabsClient.extensionFor({ contentType: audio.contentType })}`, data: audio.data });
+ return { file, content_type: audio.contentType };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/duplicate-agent.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/duplicate-agent.ts
new file mode 100644
index 00000000000..cd4a67c5727
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/duplicate-agent.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateAgentOutputSchema } from '../../output-schemas';
+
+export const duplicateAgent = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_duplicate_agent',
+ outputSchema: elevenlabsCreateAgentOutputSchema,
+ displayName: 'Duplicate Agent',
+ description: 'Copy an agent',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Creates a copy of an agent, optionally under a new name, and returns the new agent_id. Not idempotent: each call creates another agent.',
+ idempotent: false,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents or Create Agent', required: true }),
+ name: Property.ShortText({ displayName: 'Name', description: 'Name of the copy', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/agents/${encodeURIComponent(propsValue.agentId)}/duplicate`,
+ body: elevenlabsClient.compact({ values: { name: propsValue.name } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/find-similar-voices.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/find-similar-voices.ts
new file mode 100644
index 00000000000..d84c8102d98
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/find-similar-voices.ts
@@ -0,0 +1,47 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import FormData from 'form-data';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsFindSimilarVoicesOutputSchema } from '../../output-schemas';
+
+export const findSimilarVoices = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_find_similar_voices',
+ outputSchema: elevenlabsFindSimilarVoicesOutputSchema,
+ displayName: 'Find Similar Voices',
+ description: 'Find library voices that sound like an audio sample',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Uploads an audio sample and returns public library voices that sound similar to it. Use to pick a stock voice close to a target speaker. Results carry the ids that Add Shared Voice needs.',
+ idempotent: true,
+ },
+ props: {
+ audioFile: Property.File({ displayName: 'Audio Sample', required: true }),
+ similarityThreshold: Property.Number({ displayName: 'Similarity Threshold', description: '0 to 2. Lower returns closer matches only', required: false }),
+ topK: Property.Number({ displayName: 'Max Results', description: 'Between 1 and 100', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const formData = new FormData();
+ formData.append('audio_file', propsValue.audioFile.data, propsValue.audioFile.filename);
+ if (propsValue.similarityThreshold !== undefined) {
+ formData.append('similarity_threshold', String(propsValue.similarityThreshold));
+ }
+ if (propsValue.topK !== undefined) {
+ formData.append('top_k', String(propsValue.topK));
+ }
+ const response = await elevenlabsClient.request<{ voices: Record<string, unknown>[]; has_more: boolean; total_count?: number }>({
+ auth,
+ method: HttpMethod.POST,
+ path: '/v1/similar-voices',
+ formData,
+ });
+ return {
+ voices: response.voices,
+ count: response.voices.length,
+ has_more: response.has_more,
+ total_count: response.total_count ?? null,
+ };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-knowledge-base-size.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-knowledge-base-size.ts
new file mode 100644
index 00000000000..6c12bfed44e
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-knowledge-base-size.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetAgentKnowledgeBaseSizeOutputSchema } from '../../output-schemas';
+
+export const getAgentKnowledgeBaseSize = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_agent_knowledge_base_size',
+ outputSchema: elevenlabsGetAgentKnowledgeBaseSizeOutputSchema,
+ displayName: 'Get Agent Knowledge Base Size',
+ description: 'Get the knowledge base size of an agent',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the number of pages in the knowledge base attached to an agent.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents or Create Agent', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/agent/${encodeURIComponent(propsValue.agentId)}/knowledge-base/size`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-link.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-link.ts
new file mode 100644
index 00000000000..52f7c44ba61
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-link.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetAgentLinkOutputSchema } from '../../output-schemas';
+
+export const getAgentLink = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_agent_link',
+ outputSchema: elevenlabsGetAgentLinkOutputSchema,
+ displayName: 'Get Agent Link',
+ description: 'Get a shareable link token for an agent',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the shareable link token of an agent, used to open it in the ElevenLabs web talk page.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents or Create Agent', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/agents/${encodeURIComponent(propsValue.agentId)}/link`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-test-summaries.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-test-summaries.ts
new file mode 100644
index 00000000000..5e95043cd80
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-test-summaries.ts
@@ -0,0 +1,31 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetAgentTestSummariesOutputSchema } from '../../output-schemas';
+
+export const getAgentTestSummaries = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_agent_test_summaries',
+ outputSchema: elevenlabsGetAgentTestSummariesOutputSchema,
+ displayName: 'Get Agent Test Summaries',
+ description: 'Get summaries of several agent tests',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns short summaries for a list of test ids. Read-only despite using POST.',
+ idempotent: true,
+ },
+ props: {
+ testIds: Property.Array({ displayName: 'Test Ids', description: 'Test ids from List Agent Tests', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/agent-testing/summaries`,
+ body: elevenlabsClient.compact({ values: { test_ids: propsValue.testIds } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-test.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-test.ts
new file mode 100644
index 00000000000..7354cf19195
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-test.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetAgentTestOutputSchema } from '../../output-schemas';
+
+export const getAgentTest = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_agent_test',
+ outputSchema: elevenlabsGetAgentTestOutputSchema,
+ displayName: 'Get Agent Test',
+ description: 'Get an agent test',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns one agent test with its type, success condition and examples.',
+ idempotent: true,
+ },
+ props: {
+ testId: Property.ShortText({ displayName: 'Test ID', description: 'The test id from Create Agent Test or List Agent Tests', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/agent-testing/${encodeURIComponent(propsValue.testId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-widget.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-widget.ts
new file mode 100644
index 00000000000..e82a36f4158
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent-widget.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetAgentWidgetOutputSchema } from '../../output-schemas';
+
+export const getAgentWidget = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_agent_widget',
+ outputSchema: elevenlabsGetAgentWidgetOutputSchema,
+ displayName: 'Get Agent Widget',
+ description: 'Get the embed widget config of an agent',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the website widget configuration of an agent.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents or Create Agent', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/agents/${encodeURIComponent(propsValue.agentId)}/widget`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent.ts
new file mode 100644
index 00000000000..56adc3f92ff
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-agent.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetAgentOutputSchema } from '../../output-schemas';
+
+export const getAgent = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_agent',
+ outputSchema: elevenlabsGetAgentOutputSchema,
+ displayName: 'Get Agent',
+ description: 'Get a conversational AI agent',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns an agent with its full configuration: prompt, voice, language, tools, phone numbers and platform settings.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents or Create Agent', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/agents/${encodeURIComponent(propsValue.agentId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-audio-native-settings.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-audio-native-settings.ts
new file mode 100644
index 00000000000..bad02bcec44
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-audio-native-settings.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetAudioNativeSettingsOutputSchema } from '../../output-schemas';
+
+export const getAudioNativeSettings = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_audio_native_settings',
+ outputSchema: elevenlabsGetAudioNativeSettingsOutputSchema,
+ displayName: 'Get Audio Native Settings',
+ description: 'Get the player settings of an Audio Native project',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns whether the Audio Native project is enabled, its current snapshot id and the player settings.',
+ idempotent: true,
+ },
+ props: {
+ projectId: Property.ShortText({ displayName: 'Project ID', description: 'The project_id returned by Create Audio Native Project', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/audio-native/${encodeURIComponent(propsValue.projectId)}/settings`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-conversation-signed-url.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-conversation-signed-url.ts
new file mode 100644
index 00000000000..3f46ec10f58
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-conversation-signed-url.ts
@@ -0,0 +1,31 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetConversationSignedUrlOutputSchema } from '../../output-schemas';
+
+export const getConversationSignedUrl = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_conversation_signed_url',
+ outputSchema: elevenlabsGetConversationSignedUrlOutputSchema,
+ displayName: 'Get Conversation Signed URL',
+ description: 'Get a signed URL to start a conversation',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns a short-lived signed URL for connecting to a private agent over websocket.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/conversation/get-signed-url`,
+ queryParams: { agent_id: propsValue.agentId },
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-default-voice-settings.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-default-voice-settings.ts
new file mode 100644
index 00000000000..b8b5a4e24e7
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-default-voice-settings.ts
@@ -0,0 +1,27 @@
+import { createAction } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDefaultVoiceSettingsOutputSchema } from '../../output-schemas';
+
+export const getDefaultVoiceSettings = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_default_voice_settings',
+ outputSchema: elevenlabsGetDefaultVoiceSettingsOutputSchema,
+ displayName: 'Get Default Voice Settings',
+ description: 'Get the default text-to-speech voice settings',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the default voice settings (stability, similarity_boost, style, speed, use_speaker_boost) applied to voices that have no custom settings. Use as a reference before tuning a voice.',
+ idempotent: true,
+ },
+ props: {},
+ async run({ auth }) {
+ return elevenlabsClient.request<Record<string, unknown>>({
+ auth,
+ method: HttpMethod.GET,
+ path: '/v1/voices/settings/default',
+ });
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbed-file.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbed-file.ts
new file mode 100644
index 00000000000..e8d3ee6a47b
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbed-file.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDubbedFileOutputSchema } from '../../output-schemas';
+
+export const getDubbedFile = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_dubbed_file',
+ outputSchema: elevenlabsGetDubbedFileOutputSchema,
+ displayName: 'Get Dubbed File',
+ description: 'Download the dubbed audio or video',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Downloads the finished dub for one language as a file. Only works once Get Dubbing reports status dubbed.',
+ idempotent: true,
+ },
+ props: {
+ dubbingId: Property.ShortText({ displayName: 'Dubbing ID', description: 'The dubbing_id returned by Create Dubbing or List Dubbings', required: true }),
+ languageCode: Property.ShortText({ displayName: 'Language Code', description: 'Target language code, such as es', required: true }),
+ },
+ async run({ auth, propsValue, files }) {
+ const audio = await elevenlabsClient.download({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/dubbing/${encodeURIComponent(propsValue.dubbingId)}/audio/${encodeURIComponent(propsValue.languageCode)}`,
+ });
+ const file = await files.write({ fileName: `${propsValue.dubbingId}-${propsValue.languageCode}.${elevenlabsClient.extensionFor({ contentType: audio.contentType })}`, data: audio.data });
+ return { file, content_type: audio.contentType };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbing-transcript-formatted.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbing-transcript-formatted.ts
new file mode 100644
index 00000000000..c8ab0425aef
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbing-transcript-formatted.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDubbingTranscriptFormattedOutputSchema } from '../../output-schemas';
+
+export const getDubbingTranscriptFormatted = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_dubbing_transcript_formatted',
+ outputSchema: elevenlabsGetDubbingTranscriptFormattedOutputSchema,
+ displayName: 'Get Dubbing Transcript Formatted',
+ description: 'Get a dub transcript in a chosen format',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the transcript of a finished dub for one language in the requested format (srt, webvtt or json).',
+ idempotent: true,
+ },
+ props: {
+ dubbingId: Property.ShortText({ displayName: 'Dubbing ID', description: 'The dubbing_id returned by Create Dubbing or List Dubbings', required: true }),
+ languageCode: Property.ShortText({ displayName: 'Language Code', description: 'Language code, such as es', required: true }),
+ formatType: Property.ShortText({ displayName: 'Format Type', description: 'One of srt, webvtt or json', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/dubbing/${encodeURIComponent(propsValue.dubbingId)}/transcripts/${encodeURIComponent(propsValue.languageCode)}/format/${encodeURIComponent(propsValue.formatType)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbing-transcript.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbing-transcript.ts
new file mode 100644
index 00000000000..6b4eec444b0
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbing-transcript.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDubbingTranscriptOutputSchema } from '../../output-schemas';
+
+export const getDubbingTranscript = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_dubbing_transcript',
+ outputSchema: elevenlabsGetDubbingTranscriptOutputSchema,
+ displayName: 'Get Dubbing Transcript',
+ description: 'Get the transcript of a dub',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the transcript of a finished dub for one language, as structured utterances or as srt or webvtt text.',
+ idempotent: true,
+ },
+ props: {
+ dubbingId: Property.ShortText({ displayName: 'Dubbing ID', description: 'The dubbing_id returned by Create Dubbing or List Dubbings', required: true }),
+ languageCode: Property.ShortText({ displayName: 'Language Code', description: 'Language code, such as es', required: true }),
+ formatType: Property.StaticDropdown({ displayName: 'Format Type', required: false, options: { options: [{ label: 'srt', value: 'srt' }, { label: 'webvtt', value: 'webvtt' }, { label: 'json', value: 'json' }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/dubbing/${encodeURIComponent(propsValue.dubbingId)}/transcript/${encodeURIComponent(propsValue.languageCode)}`,
+ queryParams: { format_type: propsValue.formatType },
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbing.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbing.ts
new file mode 100644
index 00000000000..3e46becc4bf
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-dubbing.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDubbingOutputSchema } from '../../output-schemas';
+
+export const getDubbing = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_dubbing',
+ outputSchema: elevenlabsGetDubbingOutputSchema,
+ displayName: 'Get Dubbing',
+ description: 'Get the status of a dubbing job',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns a dubbing job with its status (dubbing, dubbed or failed), languages and any error. Poll this after Create Dubbing.',
+ idempotent: true,
+ },
+ props: {
+ dubbingId: Property.ShortText({ displayName: 'Dubbing ID', description: 'The dubbing_id returned by Create Dubbing or List Dubbings', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/dubbing/${encodeURIComponent(propsValue.dubbingId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-history-item-audio.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-history-item-audio.ts
new file mode 100644
index 00000000000..48e1ef9ea9c
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-history-item-audio.ts
@@ -0,0 +1,31 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDubbedFileOutputSchema } from '../../output-schemas';
+
+export const getHistoryItemAudio = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_history_item_audio',
+ outputSchema: elevenlabsGetDubbedFileOutputSchema,
+ displayName: 'Get History Item Audio',
+ description: 'Download the audio of a history item',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Downloads the audio of one generated item and returns it as a file. The history_item_id comes from List History Items.',
+ idempotent: true,
+ },
+ props: {
+ historyItemId: Property.ShortText({ displayName: 'History Item ID', description: 'The history_item_id from List History Items', required: true }),
+ },
+ async run({ auth, propsValue, files }) {
+ const audio = await elevenlabsClient.download({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/history/${encodeURIComponent(propsValue.historyItemId)}/audio`,
+ });
+ const file = await files.write({ fileName: `${propsValue.historyItemId}.${elevenlabsClient.extensionFor({ contentType: audio.contentType })}`, data: audio.data });
+ return { file, content_type: audio.contentType };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-history-item.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-history-item.ts
new file mode 100644
index 00000000000..51086519015
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-history-item.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetHistoryItemOutputSchema } from '../../output-schemas';
+
+export const getHistoryItem = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_history_item',
+ outputSchema: elevenlabsGetHistoryItemOutputSchema,
+ displayName: 'Get History Item',
+ description: 'Get one generated audio item',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the metadata of one generated audio item: text, voice, model, character count, state and settings. The history_item_id comes from List History Items.',
+ idempotent: true,
+ },
+ props: {
+ historyItemId: Property.ShortText({ displayName: 'History Item ID', description: 'The history_item_id from List History Items', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/history/${encodeURIComponent(propsValue.historyItemId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document-content.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document-content.ts
new file mode 100644
index 00000000000..6a55aee6e42
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document-content.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetKbDocumentContentOutputSchema } from '../../output-schemas';
+
+export const getKbDocumentContent = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_kb_document_content',
+ outputSchema: elevenlabsGetKbDocumentContentOutputSchema,
+ displayName: 'Get KB Document Content',
+ description: 'Get the text content of a knowledge base document',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the extracted text content of a knowledge base document.',
+ idempotent: true,
+ },
+ props: {
+ documentationId: Property.ShortText({ displayName: 'Documentation ID', description: 'The document id from List KB Documents or a create action', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/knowledge-base/${encodeURIComponent(propsValue.documentationId)}/content`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document-rag-indexes.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document-rag-indexes.ts
new file mode 100644
index 00000000000..e395669c9f5
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document-rag-indexes.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetKbDocumentRagIndexesOutputSchema } from '../../output-schemas';
+
+export const getKbDocumentRagIndexes = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_kb_document_rag_indexes',
+ outputSchema: elevenlabsGetKbDocumentRagIndexesOutputSchema,
+ displayName: 'Get KB Document RAG Indexes',
+ description: 'List the RAG indexes of a document',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the RAG indexes of a knowledge base document with their model and build status. Poll this after Create KB RAG Index.',
+ idempotent: true,
+ },
+ props: {
+ documentationId: Property.ShortText({ displayName: 'Documentation ID', description: 'The document id from List KB Documents or a create action', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/knowledge-base/${encodeURIComponent(propsValue.documentationId)}/rag-index`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document-source-url.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document-source-url.ts
new file mode 100644
index 00000000000..083ab494382
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document-source-url.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetKbDocumentSourceUrlOutputSchema } from '../../output-schemas';
+
+export const getKbDocumentSourceUrl = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_kb_document_source_url',
+ outputSchema: elevenlabsGetKbDocumentSourceUrlOutputSchema,
+ displayName: 'Get KB Document Source URL',
+ description: 'Get a signed URL of the original file',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns a signed URL to download the original file of an uploaded knowledge base document.',
+ idempotent: true,
+ },
+ props: {
+ documentationId: Property.ShortText({ displayName: 'Documentation ID', description: 'The document id from List KB Documents or a create action', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/knowledge-base/${encodeURIComponent(propsValue.documentationId)}/source-file-url`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document.ts
new file mode 100644
index 00000000000..7830d3bd20d
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-document.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetKbDocumentOutputSchema } from '../../output-schemas';
+
+export const getKbDocument = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_kb_document',
+ outputSchema: elevenlabsGetKbDocumentOutputSchema,
+ displayName: 'Get KB Document',
+ description: 'Get a knowledge base document',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns a knowledge base document with its type, metadata and folder path.',
+ idempotent: true,
+ },
+ props: {
+ documentationId: Property.ShortText({ displayName: 'Documentation ID', description: 'The document id from List KB Documents or a create action', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/knowledge-base/${encodeURIComponent(propsValue.documentationId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-rag-index-overview.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-rag-index-overview.ts
new file mode 100644
index 00000000000..2c8dfe1b86d
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-rag-index-overview.ts
@@ -0,0 +1,28 @@
+import { createAction } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetKbRagIndexOverviewOutputSchema } from '../../output-schemas';
+
+export const getKbRagIndexOverview = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_kb_rag_index_overview',
+ outputSchema: elevenlabsGetKbRagIndexOverviewOutputSchema,
+ displayName: 'Get KB RAG Index Overview',
+ description: 'Get RAG index storage usage',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the total RAG index storage used and available, per embedding model.',
+ idempotent: true,
+ },
+ props: {},
+ async run({ auth }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/knowledge-base/rag-index`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-summaries.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-summaries.ts
new file mode 100644
index 00000000000..4eae5cac6ef
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-kb-summaries.ts
@@ -0,0 +1,31 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetKbSummariesOutputSchema } from '../../output-schemas';
+
+export const getKbSummaries = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_kb_summaries',
+ outputSchema: elevenlabsGetKbSummariesOutputSchema,
+ displayName: 'Get KB Summaries',
+ description: 'Get the summary of a knowledge base document',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the summary of one knowledge base document by id.',
+ idempotent: true,
+ },
+ props: {
+ documentId: Property.ShortText({ displayName: 'Document ID', description: 'A document id from List KB Documents', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/knowledge-base/summaries`,
+ queryParams: { document_ids: propsValue.documentId },
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-live-conversation-count.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-live-conversation-count.ts
new file mode 100644
index 00000000000..29d90adeb72
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-live-conversation-count.ts
@@ -0,0 +1,31 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetLiveConversationCountOutputSchema } from '../../output-schemas';
+
+export const getLiveConversationCount = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_live_conversation_count',
+ outputSchema: elevenlabsGetLiveConversationCountOutputSchema,
+ displayName: 'Get Live Conversation Count',
+ description: 'Count the conversations happening now',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns how many conversations are live right now, optionally for one agent.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'Only this agent', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/analytics/live-count`,
+ queryParams: { agent_id: propsValue.agentId },
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-pronunciation-dictionary-version.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-pronunciation-dictionary-version.ts
new file mode 100644
index 00000000000..a65bd8b086f
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-pronunciation-dictionary-version.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDubbedFileOutputSchema } from '../../output-schemas';
+
+export const getPronunciationDictionaryVersion = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_pronunciation_dictionary_version',
+ outputSchema: elevenlabsGetDubbedFileOutputSchema,
+ displayName: 'Get Pronunciation Dictionary Version',
+ description: 'Download the PLS file of a dictionary version',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Downloads the PLS file with the rules of one pronunciation dictionary version as a file. The version_id comes from the dictionary actions.',
+ idempotent: true,
+ },
+ props: {
+ dictionaryId: Property.ShortText({ displayName: 'Dictionary ID', description: 'The dictionary id from List Pronunciation Dictionaries', required: true }),
+ versionId: Property.ShortText({ displayName: 'Version ID', description: 'The version_id of the dictionary', required: true }),
+ },
+ async run({ auth, propsValue, files }) {
+ const audio = await elevenlabsClient.download({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/pronunciation-dictionaries/${encodeURIComponent(propsValue.dictionaryId)}/${encodeURIComponent(propsValue.versionId)}/download`,
+ });
+ const file = await files.write({ fileName: `${propsValue.versionId}.pls`, data: audio.data });
+ return { file, content_type: audio.contentType };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-pronunciation-dictionary.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-pronunciation-dictionary.ts
new file mode 100644
index 00000000000..e1bc0d4bea7
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-pronunciation-dictionary.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetPronunciationDictionaryOutputSchema } from '../../output-schemas';
+
+export const getPronunciationDictionary = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_pronunciation_dictionary',
+ outputSchema: elevenlabsGetPronunciationDictionaryOutputSchema,
+ displayName: 'Get Pronunciation Dictionary',
+ description: 'Get a pronunciation dictionary',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns a pronunciation dictionary with its latest version_id and rules.',
+ idempotent: true,
+ },
+ props: {
+ pronunciationDictionaryId: Property.ShortText({ displayName: 'Pronunciation Dictionary ID', description: 'The id from Create Pronunciation Dictionary or List Pronunciation Dictionaries', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/pronunciation-dictionaries/${encodeURIComponent(propsValue.pronunciationDictionaryId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-subscription.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-subscription.ts
new file mode 100644
index 00000000000..c776924a12d
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-subscription.ts
@@ -0,0 +1,28 @@
+import { createAction } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetSubscriptionOutputSchema } from '../../output-schemas';
+
+export const getSubscription = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_subscription',
+ outputSchema: elevenlabsGetSubscriptionOutputSchema,
+ displayName: 'Get Subscription',
+ description: 'Get the account subscription and usage',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the subscription tier and usage: characters used and remaining, voice slots, and the reset date. Use to check remaining credits before large generations.',
+ idempotent: true,
+ },
+ props: {},
+ async run({ auth }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/user/subscription`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-test-invocation.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-test-invocation.ts
new file mode 100644
index 00000000000..465199d7a82
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-test-invocation.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetTestInvocationOutputSchema } from '../../output-schemas';
+
+export const getTestInvocation = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_test_invocation',
+ outputSchema: elevenlabsGetTestInvocationOutputSchema,
+ displayName: 'Get Test Invocation',
+ description: 'Get the results of a test run',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns a test invocation with the result of each test run. Poll this after Run Agent Tests.',
+ idempotent: true,
+ },
+ props: {
+ testInvocationId: Property.ShortText({ displayName: 'Test Invocation ID', description: 'The id from Run Agent Tests or List Test Invocations', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/test-invocations/${encodeURIComponent(propsValue.testInvocationId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-tool.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-tool.ts
new file mode 100644
index 00000000000..2e3156e5c99
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-tool.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateToolOutputSchema } from '../../output-schemas';
+
+export const getTool = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_tool',
+ outputSchema: elevenlabsCreateToolOutputSchema,
+ displayName: 'Get Tool',
+ description: 'Get an agent tool',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns one tool with its configuration and usage stats.',
+ idempotent: true,
+ },
+ props: {
+ toolId: Property.ShortText({ displayName: 'Tool ID', description: 'The tool id from List Tools or Create Tool', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/tools/${encodeURIComponent(propsValue.toolId)}`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-user.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-user.ts
new file mode 100644
index 00000000000..7fbbeb6c561
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-user.ts
@@ -0,0 +1,28 @@
+import { createAction } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetUserOutputSchema } from '../../output-schemas';
+
+export const getUser = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_user',
+ outputSchema: elevenlabsGetUserOutputSchema,
+ displayName: 'Get User',
+ description: 'Get the current account user',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the user behind the API key: user id, name, API key preview and subscription summary. Use to check which account a connection belongs to.',
+ idempotent: true,
+ },
+ props: {},
+ async run({ auth }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/user`,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-voice-settings.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-voice-settings.ts
new file mode 100644
index 00000000000..5a590ea4301
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-voice-settings.ts
@@ -0,0 +1,29 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDefaultVoiceSettingsOutputSchema } from '../../output-schemas';
+
+export const getVoiceSettings = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_voice_settings',
+ outputSchema: elevenlabsGetDefaultVoiceSettingsOutputSchema,
+ displayName: 'Get Voice Settings',
+ description: 'Get the stability, similarity, style and speed settings of a voice',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Returns the current text-to-speech settings of a voice: stability, similarity_boost, style, speed and use_speaker_boost. Use before Edit Voice Settings to see what will change.',
+ idempotent: true,
+ },
+ props: {
+ voiceId: Property.ShortText({ displayName: 'Voice ID', description: 'The voice_id from List Voices', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ return elevenlabsClient.request<Record<string, unknown>>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/voices/${encodeURIComponent(propsValue.voiceId)}/settings`,
+ });
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-voice.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-voice.ts
new file mode 100644
index 00000000000..61330e4666f
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/get-voice.ts
@@ -0,0 +1,30 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetVoiceOutputSchema } from '../../output-schemas';
+
+export const getVoice = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_get_voice',
+ outputSchema: elevenlabsGetVoiceOutputSchema,
+ displayName: 'Get Voice',
+ description: 'Get the details of a voice',
+ audience: 'ai',
+ classification: 'READ',
+ aiMetadata: {
+ description: 'Fetches one voice by voice_id, including its name, category, labels, samples, settings and preview URL. Use after List Voices to inspect a voice before using or editing it.',
+ idempotent: true,
+ },
+ props: {
+ voiceId: Property.ShortText({ displayName: 'Voice ID', description: 'The voice_id from List Voices', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ return elevenlabsClient.request<Record<string, unknown>>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/voices/${encodeURIComponent(propsValue.voiceId)}`,
+ queryParams: { with_settings: true },
+ });
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/isolate-audio.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/isolate-audio.ts
new file mode 100644
index 00000000000..3337c71f169
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/isolate-audio.ts
@@ -0,0 +1,35 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import FormData from 'form-data';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetDubbedFileOutputSchema } from '../../output-schemas';
+
+export const isolateAudio = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_isolate_audio',
+ outputSchema: elevenlabsGetDubbedFileOutputSchema,
+ displayName: 'Isolate Audio',
+ description: 'Remove background noise and keep only the voice',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Removes background noise and music from an audio file, keeping the speech, and returns the cleaned audio as a file. Use to clean a recording before cloning a voice or transcribing it. Not idempotent: each call consumes credits.',
+ idempotent: false,
+ },
+ props: {
+ audio: Property.File({ displayName: 'Audio', description: 'Recording to clean', required: true }),
+ },
+ async run({ auth, propsValue, files }) {
+ const formData = new FormData();
+ formData.append('audio', propsValue.audio.data, propsValue.audio.filename);
+ const audio = await elevenlabsClient.download({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/audio-isolation`,
+ formData,
+ });
+ const file = await files.write({ fileName: `isolated.${elevenlabsClient.extensionFor({ contentType: audio.contentType })}`, data: audio.data });
+ return { file, content_type: audio.contentType };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-agent-tests.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-agent-tests.ts
new file mode 100644
index 00000000000..5b705fa626b
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-agent-tests.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListAgentTestsOutputSchema } from '../../output-schemas';
+
+export const listAgentTests = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_agent_tests',
+ outputSchema: elevenlabsListAgentTestsOutputSchema,
+ displayName: 'List Agent Tests',
+ description: 'List agent tests',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists agent tests with their ids and names. Search by name and page with next_cursor. Use to find test ids for Run Agent Tests.',
+ idempotent: true,
+ },
+ props: {
+ search: Property.ShortText({ displayName: 'Search', description: 'Text matched against the test name', required: false }),
+ pageSize: Property.Number({ displayName: 'Page Size', description: 'Between 1 and 100', required: false }),
+ cursor: Property.ShortText({ displayName: 'Cursor', description: 'next_cursor from a previous call', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { tests: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/agent-testing`,
+ queryParams: { search: propsValue.search, page_size: propsValue.pageSize, cursor: propsValue.cursor },
+ });
+ return { ...response, count: response.tests.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-agents.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-agents.ts
new file mode 100644
index 00000000000..d687416dc5f
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-agents.ts
@@ -0,0 +1,35 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListAgentsOutputSchema } from '../../output-schemas';
+
+export const listAgents = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_agents',
+ outputSchema: elevenlabsListAgentsOutputSchema,
+ displayName: 'List Agents',
+ description: 'List conversational AI agents',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists agents with their ids and names. Search by name and page with next_cursor. Use to find an agent_id.',
+ idempotent: true,
+ },
+ props: {
+ search: Property.ShortText({ displayName: 'Search', description: 'Text matched against the agent name', required: false }),
+ pageSize: Property.Number({ displayName: 'Page Size', description: 'Between 1 and 100', required: false }),
+ cursor: Property.ShortText({ displayName: 'Cursor', description: 'next_cursor from a previous call', required: false }),
+ archived: Property.StaticDropdown({ displayName: 'Archived', description: 'Only archived agents', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ sortDirection: Property.StaticDropdown({ displayName: 'Sort Direction', required: false, options: { options: [{ label: 'asc', value: 'asc' }, { label: 'desc', value: 'desc' }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { agents: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/agents`,
+ queryParams: { search: propsValue.search, page_size: propsValue.pageSize, cursor: propsValue.cursor, archived: propsValue.archived, sort_direction: propsValue.sortDirection },
+ });
+ return { ...response, count: response.agents.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-batch-calls.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-batch-calls.ts
new file mode 100644
index 00000000000..29e1beb22ae
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-batch-calls.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListBatchCallsOutputSchema } from '../../output-schemas';
+
+export const listBatchCalls = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_batch_calls',
+ outputSchema: elevenlabsListBatchCallsOutputSchema,
+ displayName: 'List Batch Calls',
+ description: 'List batch calls',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists batch calls in the workspace with status and progress counts. Page with next_doc.',
+ idempotent: true,
+ },
+ props: {
+ limit: Property.Number({ displayName: 'Limit', description: 'Between 1 and 100', required: false }),
+ lastDoc: Property.ShortText({ displayName: 'Last Doc', description: 'next_doc from a previous call', required: false }),
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'Only this agent', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { batch_calls: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/batch-calling/workspace`,
+ queryParams: { limit: propsValue.limit, last_doc: propsValue.lastDoc, agent_id: propsValue.agentId },
+ });
+ return { ...response, count: response.batch_calls.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-conversations.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-conversations.ts
new file mode 100644
index 00000000000..58edc815264
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-conversations.ts
@@ -0,0 +1,36 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListConversationsOutputSchema } from '../../output-schemas';
+
+export const listConversations = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_conversations',
+ outputSchema: elevenlabsListConversationsOutputSchema,
+ displayName: 'List Conversations',
+ description: 'List agent conversations',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists conversations with their ids, agent, duration and success status. Filter by agent, outcome or start time and page with next_cursor. Use to find a conversation_id.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'Only this agent', required: false }),
+ cursor: Property.ShortText({ displayName: 'Cursor', description: 'next_cursor from a previous call', required: false }),
+ callSuccessful: Property.StaticDropdown({ displayName: 'Call Successful', required: false, options: { options: [{ label: 'success', value: 'success' }, { label: 'failure', value: 'failure' }, { label: 'unknown', value: 'unknown' }] } }),
+ callStartAfterUnix: Property.Number({ displayName: 'Call Start After Unix', description: 'Unix time lower bound', required: false }),
+ callStartBeforeUnix: Property.Number({ displayName: 'Call Start Before Unix', description: 'Unix time upper bound', required: false }),
+ userId: Property.ShortText({ displayName: 'User ID', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { conversations: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/conversations`,
+ queryParams: { agent_id: propsValue.agentId, cursor: propsValue.cursor, call_successful: propsValue.callSuccessful, call_start_after_unix: propsValue.callStartAfterUnix, call_start_before_unix: propsValue.callStartBeforeUnix, user_id: propsValue.userId },
+ });
+ return { ...response, count: response.conversations.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-dubbings.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-dubbings.ts
new file mode 100644
index 00000000000..b83b236f0ba
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-dubbings.ts
@@ -0,0 +1,35 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListDubbingsOutputSchema } from '../../output-schemas';
+
+export const listDubbings = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_dubbings',
+ outputSchema: elevenlabsListDubbingsOutputSchema,
+ displayName: 'List Dubbings',
+ description: 'List dubbing projects',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists dubbing projects with their ids, names and status. Filter by status and page with next_cursor. Use to find a dubbing_id.',
+ idempotent: true,
+ },
+ props: {
+ cursor: Property.ShortText({ displayName: 'Cursor', description: 'next_cursor from a previous call', required: false }),
+ pageSize: Property.Number({ displayName: 'Page Size', description: 'Between 1 and 200', required: false }),
+ dubbingStatus: Property.StaticDropdown({ displayName: 'Dubbing Status', required: false, options: { options: [{ label: 'dubbing', value: 'dubbing' }, { label: 'dubbed', value: 'dubbed' }, { label: 'failed', value: 'failed' }] } }),
+ orderBy: Property.StaticDropdown({ displayName: 'Order By', required: false, options: { options: [{ label: 'created_at', value: 'created_at' }, { label: 'name', value: 'name' }] } }),
+ orderDirection: Property.StaticDropdown({ displayName: 'Order Direction', required: false, options: { options: [{ label: 'DESCENDING', value: 'DESCENDING' }, { label: 'ASCENDING', value: 'ASCENDING' }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { dubs: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/dubbing`,
+ queryParams: { cursor: propsValue.cursor, page_size: propsValue.pageSize, dubbing_status: propsValue.dubbingStatus, order_by: propsValue.orderBy, order_direction: propsValue.orderDirection },
+ });
+ return { ...response, count: response.dubs.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-history-items.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-history-items.ts
new file mode 100644
index 00000000000..bb055fcd6b6
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-history-items.ts
@@ -0,0 +1,37 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListHistoryItemsOutputSchema } from '../../output-schemas';
+
+export const listHistoryItems = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_history_items',
+ outputSchema: elevenlabsListHistoryItemsOutputSchema,
+ displayName: 'List History Items',
+ description: 'List previously generated audio',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists generated audio (text-to-speech, speech-to-speech) from the account history with the text, voice and model used. Filter by voice, model, source or search text and page with last_history_item_id. Use to find a history_item_id for Get History Item Audio.',
+ idempotent: true,
+ },
+ props: {
+ pageSize: Property.Number({ displayName: 'Page Size', description: 'Between 1 and 1000. Defaults to 100', required: false }),
+ startAfterHistoryItemId: Property.ShortText({ displayName: 'Start After History Item ID', description: 'last_history_item_id from a previous call to get the next page', required: false }),
+ voiceId: Property.ShortText({ displayName: 'Voice ID', description: 'Only items generated with this voice', required: false }),
+ modelId: Property.ShortText({ displayName: 'Model ID', description: 'Only items generated with this model', required: false }),
+ search: Property.ShortText({ displayName: 'Search', description: 'Text matched against the generated text', required: false }),
+ source: Property.StaticDropdown({ displayName: 'Source', required: false, options: { options: [{ label: 'TTS', value: 'TTS' }, { label: 'STS', value: 'STS' }, { label: 'Flows', value: 'Flows' }] } }),
+ sortDirection: Property.StaticDropdown({ displayName: 'Sort Direction', required: false, options: { options: [{ label: 'asc', value: 'asc' }, { label: 'desc', value: 'desc' }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { history: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/history`,
+ queryParams: { page_size: propsValue.pageSize, start_after_history_item_id: propsValue.startAfterHistoryItemId, voice_id: propsValue.voiceId, model_id: propsValue.modelId, search: propsValue.search, source: propsValue.source, sort_direction: propsValue.sortDirection },
+ });
+ return { ...response, count: response.history.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-kb-dependent-agents.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-kb-dependent-agents.ts
new file mode 100644
index 00000000000..c697525ea1c
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-kb-dependent-agents.ts
@@ -0,0 +1,34 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListKbDependentAgentsOutputSchema } from '../../output-schemas';
+
+export const listKbDependentAgents = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_kb_dependent_agents',
+ outputSchema: elevenlabsListKbDependentAgentsOutputSchema,
+ displayName: 'List KB Dependent Agents',
+ description: 'List agents using a document',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists the agents that use a knowledge base document. Check this before deleting a document.',
+ idempotent: true,
+ },
+ props: {
+ documentationId: Property.ShortText({ displayName: 'Documentation ID', description: 'The document id from List KB Documents or a create action', required: true }),
+ dependentType: Property.StaticDropdown({ displayName: 'Dependent Type', required: false, options: { options: [{ label: 'direct', value: 'direct' }, { label: 'transitive', value: 'transitive' }, { label: 'all', value: 'all' }] } }),
+ pageSize: Property.Number({ displayName: 'Page Size', required: false }),
+ cursor: Property.ShortText({ displayName: 'Cursor', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { agents: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/knowledge-base/${encodeURIComponent(propsValue.documentationId)}/dependent-agents`,
+ queryParams: { dependent_type: propsValue.dependentType, page_size: propsValue.pageSize, cursor: propsValue.cursor },
+ });
+ return { ...response, count: response.agents.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-kb-documents.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-kb-documents.ts
new file mode 100644
index 00000000000..368ba4b539e
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-kb-documents.ts
@@ -0,0 +1,34 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListKbDocumentsOutputSchema } from '../../output-schemas';
+
+export const listKbDocuments = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_kb_documents',
+ outputSchema: elevenlabsListKbDocumentsOutputSchema,
+ displayName: 'List KB Documents',
+ description: 'List knowledge base documents',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists knowledge base documents and folders with their ids, names and types. Search by name and page with next_cursor. Use to find a documentation_id.',
+ idempotent: true,
+ },
+ props: {
+ search: Property.ShortText({ displayName: 'Search', description: 'Text matched against the document name', required: false }),
+ pageSize: Property.Number({ displayName: 'Page Size', description: 'Between 1 and 100', required: false }),
+ cursor: Property.ShortText({ displayName: 'Cursor', description: 'next_cursor from a previous call', required: false }),
+ parentFolderId: Property.ShortText({ displayName: 'Parent Folder ID', description: 'Only items in this folder', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { documents: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/knowledge-base`,
+ queryParams: { search: propsValue.search, page_size: propsValue.pageSize, cursor: propsValue.cursor, parent_folder_id: propsValue.parentFolderId },
+ });
+ return { ...response, count: response.documents.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-models.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-models.ts
new file mode 100644
index 00000000000..13ac4ff43b3
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-models.ts
@@ -0,0 +1,28 @@
+import { createAction } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListModelsOutputSchema } from '../../output-schemas';
+
+export const listModels = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_models',
+ outputSchema: elevenlabsListModelsOutputSchema,
+ displayName: 'List Models',
+ description: 'List the available ElevenLabs models',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists every model with its id, supported languages, character limits and capabilities such as text-to-speech or voice conversion. Use to find the model_id that other actions need.',
+ idempotent: true,
+ },
+ props: {},
+ async run({ auth }) {
+ const response = await elevenlabsClient.request<unknown[]>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/models`,
+ });
+ return { items: response, count: response.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-phone-numbers.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-phone-numbers.ts
new file mode 100644
index 00000000000..a162c82cd97
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-phone-numbers.ts
@@ -0,0 +1,31 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListPhoneNumbersOutputSchema } from '../../output-schemas';
+
+export const listPhoneNumbers = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_phone_numbers',
+ outputSchema: elevenlabsListPhoneNumbersOutputSchema,
+ displayName: 'List Phone Numbers',
+ description: 'List agent phone numbers',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists imported phone numbers with the agent each is assigned to. The phone_number_id feeds Make Outbound Call and Submit Batch Call.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'Only numbers assigned to this agent', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<unknown[]>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/phone-numbers`,
+ queryParams: { agent_id: propsValue.agentId },
+ });
+ return { items: response, count: response.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-pronunciation-dictionaries.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-pronunciation-dictionaries.ts
new file mode 100644
index 00000000000..868df0b94e3
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-pronunciation-dictionaries.ts
@@ -0,0 +1,34 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListPronunciationDictionariesOutputSchema } from '../../output-schemas';
+
+export const listPronunciationDictionaries = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_pronunciation_dictionaries',
+ outputSchema: elevenlabsListPronunciationDictionariesOutputSchema,
+ displayName: 'List Pronunciation Dictionaries',
+ description: 'List pronunciation dictionaries',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists pronunciation dictionaries with their ids and latest version ids. Page with next_cursor.',
+ idempotent: true,
+ },
+ props: {
+ cursor: Property.ShortText({ displayName: 'Cursor', description: 'next_cursor from a previous call', required: false }),
+ pageSize: Property.Number({ displayName: 'Page Size', description: 'Between 1 and 100', required: false }),
+ sort: Property.StaticDropdown({ displayName: 'Sort', required: false, options: { options: [{ label: 'creation_time_unix', value: 'creation_time_unix' }, { label: 'name', value: 'name' }] } }),
+ includeArchived: Property.StaticDropdown({ displayName: 'Include Archived', description: 'Include archived dictionaries', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { pronunciation_dictionaries: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/pronunciation-dictionaries`,
+ queryParams: { cursor: propsValue.cursor, page_size: propsValue.pageSize, sort: propsValue.sort, include_archived: propsValue.includeArchived },
+ });
+ return { ...response, count: response.pronunciation_dictionaries.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-secrets.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-secrets.ts
new file mode 100644
index 00000000000..b224641a9fb
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-secrets.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListSecretsOutputSchema } from '../../output-schemas';
+
+export const listSecrets = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_secrets',
+ outputSchema: elevenlabsListSecretsOutputSchema,
+ displayName: 'List Secrets',
+ description: 'List workspace secrets',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists workspace secrets with their ids and names. Values are never returned.',
+ idempotent: true,
+ },
+ props: {
+ search: Property.ShortText({ displayName: 'Search', required: false }),
+ pageSize: Property.Number({ displayName: 'Page Size', required: false }),
+ cursor: Property.ShortText({ displayName: 'Cursor', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { secrets: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/secrets`,
+ queryParams: { search: propsValue.search, page_size: propsValue.pageSize, cursor: propsValue.cursor },
+ });
+ return { ...response, count: response.secrets.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-shared-voices.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-shared-voices.ts
new file mode 100644
index 00000000000..c8b94b35a1b
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-shared-voices.ts
@@ -0,0 +1,62 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListSharedVoicesOutputSchema } from '../../output-schemas';
+
+export const listSharedVoices = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_shared_voices',
+ outputSchema: elevenlabsListSharedVoicesOutputSchema,
+ displayName: 'List Shared Voices',
+ description: 'Search the public ElevenLabs voice library',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Searches the public voice library by text, gender, age, accent, language or category. Returns each voice with its public_owner_id and voice_id, which Add Shared Voice needs to copy it into the account.',
+ idempotent: true,
+ },
+ props: {
+ search: Property.ShortText({ displayName: 'Search', required: false }),
+ category: Property.StaticDropdown({
+ displayName: 'Category',
+ required: false,
+ options: {
+ options: [
+ { label: 'Professional', value: 'professional' },
+ { label: 'Famous', value: 'famous' },
+ { label: 'High quality', value: 'high_quality' },
+ ],
+ },
+ }),
+ gender: Property.ShortText({ displayName: 'Gender', description: 'For example male or female', required: false }),
+ age: Property.ShortText({ displayName: 'Age', description: 'For example young, middle_aged or old', required: false }),
+ accent: Property.ShortText({ displayName: 'Accent', required: false }),
+ language: Property.ShortText({ displayName: 'Language', description: 'Language code such as en or es', required: false }),
+ pageSize: Property.Number({ displayName: 'Page Size', description: 'Up to 100. Defaults to 30', required: false }),
+ page: Property.Number({ displayName: 'Page', description: 'Zero-based page number', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<{ voices: Record<string, unknown>[]; has_more: boolean; total_count?: number }>({
+ auth,
+ method: HttpMethod.GET,
+ path: '/v1/shared-voices',
+ queryParams: {
+ search: propsValue.search,
+ category: propsValue.category,
+ gender: propsValue.gender,
+ age: propsValue.age,
+ accent: propsValue.accent,
+ language: propsValue.language,
+ page_size: propsValue.pageSize,
+ page: propsValue.page,
+ },
+ });
+ return {
+ voices: response.voices,
+ count: response.voices.length,
+ has_more: response.has_more,
+ total_count: response.total_count ?? null,
+ };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-test-invocations.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-test-invocations.ts
new file mode 100644
index 00000000000..cd7dab46eb4
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-test-invocations.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListTestInvocationsOutputSchema } from '../../output-schemas';
+
+export const listTestInvocations = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_test_invocations',
+ outputSchema: elevenlabsListTestInvocationsOutputSchema,
+ displayName: 'List Test Invocations',
+ description: 'List agent test runs',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists past test runs, optionally for one agent. Page with next_cursor.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'Only runs for this agent', required: false }),
+ pageSize: Property.Number({ displayName: 'Page Size', description: 'Between 1 and 100', required: false }),
+ cursor: Property.ShortText({ displayName: 'Cursor', description: 'next_cursor from a previous call', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { results: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/test-invocations`,
+ queryParams: { agent_id: propsValue.agentId, page_size: propsValue.pageSize, cursor: propsValue.cursor },
+ });
+ return { ...response, count: response.results.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-tool-dependent-agents.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-tool-dependent-agents.ts
new file mode 100644
index 00000000000..c005340c264
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-tool-dependent-agents.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListKbDependentAgentsOutputSchema } from '../../output-schemas';
+
+export const listToolDependentAgents = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_tool_dependent_agents',
+ outputSchema: elevenlabsListKbDependentAgentsOutputSchema,
+ displayName: 'List Tool Dependent Agents',
+ description: 'List agents using a tool',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists the agents that use a tool. Check this before deleting a tool.',
+ idempotent: true,
+ },
+ props: {
+ toolId: Property.ShortText({ displayName: 'Tool ID', description: 'The tool id from List Tools or Create Tool', required: true }),
+ cursor: Property.ShortText({ displayName: 'Cursor', required: false }),
+ pageSize: Property.Number({ displayName: 'Page Size', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { agents: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/tools/${encodeURIComponent(propsValue.toolId)}/dependent-agents`,
+ queryParams: { cursor: propsValue.cursor, page_size: propsValue.pageSize },
+ });
+ return { ...response, count: response.agents.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-tools.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-tools.ts
new file mode 100644
index 00000000000..21e58171e77
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-tools.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListToolsOutputSchema } from '../../output-schemas';
+
+export const listTools = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_tools',
+ outputSchema: elevenlabsListToolsOutputSchema,
+ displayName: 'List Tools',
+ description: 'List agent tools',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists workspace agent tools with their ids and configuration. Search by name and page with next_cursor.',
+ idempotent: true,
+ },
+ props: {
+ search: Property.ShortText({ displayName: 'Search', description: 'Text matched against the tool name', required: false }),
+ pageSize: Property.Number({ displayName: 'Page Size', required: false }),
+ cursor: Property.ShortText({ displayName: 'Cursor', description: 'next_cursor from a previous call', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> & { tools: unknown[] }>({
+ auth,
+ method: HttpMethod.GET,
+ path: `/v1/convai/tools`,
+ queryParams: { search: propsValue.search, page_size: propsValue.pageSize, cursor: propsValue.cursor },
+ });
+ return { ...response, count: response.tools.length };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-voices.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-voices.ts
new file mode 100644
index 00000000000..f4d9a0dac8e
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/list-voices.ts
@@ -0,0 +1,79 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsListVoicesOutputSchema } from '../../output-schemas';
+
+export const listVoices = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_list_voices',
+ outputSchema: elevenlabsListVoicesOutputSchema,
+ displayName: 'List Voices',
+ description: 'Search the voices available in your ElevenLabs account',
+ audience: 'ai',
+ classification: 'SEARCH',
+ aiMetadata: {
+ description: 'Lists or searches the voices in the account (premade, cloned, generated and library voices), returning ids, names, categories and labels. Use to find the voice_id needed by text-to-speech, edit, or delete actions. Supports paging through next_page_token.',
+ idempotent: true,
+ },
+ props: {
+ search: Property.ShortText({ displayName: 'Search', description: 'Text matched against voice name, description and labels', required: false }),
+ category: Property.StaticDropdown({
+ displayName: 'Category',
+ required: false,
+ options: {
+ options: [
+ { label: 'Premade', value: 'premade' },
+ { label: 'Cloned', value: 'cloned' },
+ { label: 'Generated', value: 'generated' },
+ { label: 'Professional', value: 'professional' },
+ ],
+ },
+ }),
+ voiceType: Property.StaticDropdown({
+ displayName: 'Voice Type',
+ required: false,
+ options: {
+ options: [
+ { label: 'Personal', value: 'personal' },
+ { label: 'Community', value: 'community' },
+ { label: 'Default', value: 'default' },
+ { label: 'Workspace', value: 'workspace' },
+ { label: 'Non-default', value: 'non-default' },
+ { label: 'Saved', value: 'saved' },
+ ],
+ },
+ }),
+ pageSize: Property.Number({ displayName: 'Page Size', description: 'Between 1 and 100. Defaults to 10', required: false }),
+ nextPageToken: Property.ShortText({ displayName: 'Next Page Token', description: 'next_page_token from a previous call', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<VoicesResponse>({
+ auth,
+ method: HttpMethod.GET,
+ path: '/v2/voices',
+ queryParams: {
+ search: propsValue.search,
+ category: propsValue.category,
+ voice_type: propsValue.voiceType,
+ page_size: propsValue.pageSize,
+ next_page_token: propsValue.nextPageToken,
+ include_total_count: true,
+ },
+ });
+ return {
+ voices: response.voices,
+ count: response.voices.length,
+ has_more: response.has_more,
+ total_count: response.total_count ?? null,
+ next_page_token: response.next_page_token ?? null,
+ };
+ },
+});
+
+type VoicesResponse = {
+ voices: Record<string, unknown>[];
+ has_more: boolean;
+ total_count?: number | null;
+ next_page_token?: string | null;
+};
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/move-kb-document.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/move-kb-document.ts
new file mode 100644
index 00000000000..902580b3a06
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/move-kb-document.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsDeleteKbDocumentOutputSchema } from '../../output-schemas';
+
+export const moveKbDocument = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_move_kb_document',
+ outputSchema: elevenlabsDeleteKbDocumentOutputSchema,
+ displayName: 'Move KB Document',
+ description: 'Move a document into a folder',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Moves a knowledge base document or folder into another folder. Leave the destination empty to move it to the root. Re-applying the same move is safe.',
+ idempotent: true,
+ },
+ props: {
+ documentId: Property.ShortText({ displayName: 'Document ID', description: 'The document id from List KB Documents', required: true }),
+ moveTo: Property.ShortText({ displayName: 'Move To', description: 'Destination folder id, empty for the root', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/knowledge-base/${encodeURIComponent(propsValue.documentId)}/move`,
+ body: elevenlabsClient.compact({ values: { move_to: propsValue.moveTo } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/move-kb-documents-bulk.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/move-kb-documents-bulk.ts
new file mode 100644
index 00000000000..8c04103e85c
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/move-kb-documents-bulk.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsDeleteKbDocumentOutputSchema } from '../../output-schemas';
+
+export const moveKbDocumentsBulk = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_move_kb_documents_bulk',
+ outputSchema: elevenlabsDeleteKbDocumentOutputSchema,
+ displayName: 'Move KB Documents Bulk',
+ description: 'Move several documents into a folder',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Moves several knowledge base documents into one folder in a single call. Re-applying the same move is safe.',
+ idempotent: true,
+ },
+ props: {
+ documentIds: Property.Array({ displayName: 'Document Ids', description: 'Document ids from List KB Documents', required: true }),
+ moveTo: Property.ShortText({ displayName: 'Move To', description: 'Destination folder id, empty for the root', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/knowledge-base/bulk-move`,
+ body: elevenlabsClient.compact({ values: { document_ids: propsValue.documentIds, move_to: propsValue.moveTo } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/remove-pronunciation-rules.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/remove-pronunciation-rules.ts
new file mode 100644
index 00000000000..ee0b681024f
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/remove-pronunciation-rules.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsAddPronunciationRulesOutputSchema } from '../../output-schemas';
+
+export const removePronunciationRules = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_remove_pronunciation_rules',
+ outputSchema: elevenlabsAddPronunciationRulesOutputSchema,
+ displayName: 'Remove Pronunciation Rules',
+ description: 'Remove rules from a pronunciation dictionary',
+ audience: 'ai',
+ classification: 'DESTRUCTIVE',
+ aiMetadata: {
+ description: 'Removes rules from a pronunciation dictionary by their string_to_replace values and returns the new version_id. Removing rules that are already gone changes nothing.',
+ idempotent: true,
+ },
+ props: {
+ pronunciationDictionaryId: Property.ShortText({ displayName: 'Pronunciation Dictionary ID', description: 'The id from Create Pronunciation Dictionary or List Pronunciation Dictionaries', required: true }),
+ ruleStrings: Property.Array({ displayName: 'Rule Strings', description: 'The string_to_replace values of the rules to remove', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/pronunciation-dictionaries/${encodeURIComponent(propsValue.pronunciationDictionaryId)}/remove-rules`,
+ body: elevenlabsClient.compact({ values: { rule_strings: propsValue.ruleStrings } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/resubmit-test-invocation.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/resubmit-test-invocation.ts
new file mode 100644
index 00000000000..cb3c34ddbc1
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/resubmit-test-invocation.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsDeleteKbDocumentOutputSchema } from '../../output-schemas';
+
+export const resubmitTestInvocation = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_resubmit_test_invocation',
+ outputSchema: elevenlabsDeleteKbDocumentOutputSchema,
+ displayName: 'Resubmit Test Invocation',
+ description: 'Re-run tests of a previous run',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Re-runs selected test runs of a previous invocation against the agent. Not idempotent: each call starts new runs.',
+ idempotent: false,
+ },
+ props: {
+ testInvocationId: Property.ShortText({ displayName: 'Test Invocation ID', description: 'The id from List Test Invocations', required: true }),
+ testRunIds: Property.Array({ displayName: 'Test Run Ids', description: 'test_run ids from Get Test Invocation', required: true }),
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent to run against', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/test-invocations/${encodeURIComponent(propsValue.testInvocationId)}/resubmit`,
+ body: elevenlabsClient.compact({ values: { test_run_ids: propsValue.testRunIds, agent_id: propsValue.agentId } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/run-agent-tests.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/run-agent-tests.ts
new file mode 100644
index 00000000000..dba334b2d41
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/run-agent-tests.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsRunAgentTestsOutputSchema } from '../../output-schemas';
+
+export const runAgentTests = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_run_agent_tests',
+ outputSchema: elevenlabsRunAgentTestsOutputSchema,
+ displayName: 'Run Agent Tests',
+ description: 'Run tests against an agent',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Starts a run of the given tests against an agent and returns a test invocation. Poll Get Test Invocation until the runs finish. Not idempotent: each call starts a new run.',
+ idempotent: false,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents', required: true }),
+ tests: Property.Json({ displayName: 'Tests', description: 'JSON array of tests to run, such as [{"test_id": "..."}]', required: true }),
+ repeatCount: Property.Number({ displayName: 'Repeat Count', description: 'Times to run each test', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/agents/${encodeURIComponent(propsValue.agentId)}/run-tests`,
+ body: elevenlabsClient.compact({ values: { tests: propsValue.tests, repeat_count: propsValue.repeatCount } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/set-agent-avatar.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/set-agent-avatar.ts
new file mode 100644
index 00000000000..25f80663c42
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/set-agent-avatar.ts
@@ -0,0 +1,35 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import FormData from 'form-data';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsSetAgentAvatarOutputSchema } from '../../output-schemas';
+
+export const setAgentAvatar = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_set_agent_avatar',
+ outputSchema: elevenlabsSetAgentAvatarOutputSchema,
+ displayName: 'Set Agent Avatar',
+ description: 'Upload an avatar image for an agent',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Uploads an image as the agent avatar and returns the avatar URL. Uploading the same image again gives the same result.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents or Create Agent', required: true }),
+ avatarFile: Property.File({ displayName: 'Avatar File', description: 'Image file for the avatar', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const formData = new FormData();
+ formData.append('avatar_file', propsValue.avatarFile.data, propsValue.avatarFile.filename);
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/agents/${encodeURIComponent(propsValue.agentId)}/avatar`,
+ formData,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/simulate-agent-conversation.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/simulate-agent-conversation.ts
new file mode 100644
index 00000000000..df69fe4a3f4
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/simulate-agent-conversation.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsSimulateAgentConversationOutputSchema } from '../../output-schemas';
+
+export const simulateAgentConversation = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_simulate_agent_conversation',
+ outputSchema: elevenlabsSimulateAgentConversationOutputSchema,
+ displayName: 'Simulate Agent Conversation',
+ description: 'Simulate a conversation with an agent',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Runs a simulated conversation between the agent and a simulated user described by simulation_specification, and returns the transcript and analysis. Use to test an agent without a live call. Not idempotent: each run differs and consumes credits.',
+ idempotent: false,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents or Create Agent', required: true }),
+ simulationSpecification: Property.Json({ displayName: 'Simulation Specification', description: 'Simulated user, such as {"simulated_user_config": {"prompt": {"prompt": "You are a customer asking about pricing"}}}', required: true }),
+ newTurnsLimit: Property.Number({ displayName: 'New Turns Limit', description: 'Maximum turns to simulate', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/convai/agents/${encodeURIComponent(propsValue.agentId)}/simulate-conversation`,
+ body: elevenlabsClient.compact({ values: { simulation_specification: propsValue.simulationSpecification, new_turns_limit: propsValue.newTurnsLimit } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-agent-test.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-agent-test.ts
new file mode 100644
index 00000000000..59a0a1981bb
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-agent-test.ts
@@ -0,0 +1,46 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetAgentTestOutputSchema } from '../../output-schemas';
+
+export const updateAgentTest = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_update_agent_test',
+ outputSchema: elevenlabsGetAgentTestOutputSchema,
+ displayName: 'Update Agent Test',
+ description: 'Change an agent test',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Updates an agent test. The API replaces the whole test, so the action reads the current test and re-sends it with only the supplied fields changed. Re-applying the same values is safe.',
+ idempotent: true,
+ },
+ props: {
+ testId: Property.ShortText({ displayName: 'Test ID', description: 'The test id from Create Agent Test or List Agent Tests', required: true }),
+ name: Property.ShortText({ displayName: 'Name', required: false }),
+ successCondition: Property.LongText({ displayName: 'Success Condition', description: 'What a passing response must do', required: false }),
+ successExamples: Property.Json({ displayName: 'Success Examples', description: 'Replaces the examples, JSON array such as [{"response": "...", "type": "success"}]', required: false }),
+ failureExamples: Property.Json({ displayName: 'Failure Examples', description: 'Replaces the examples, JSON array such as [{"response": "...", "type": "failure"}]', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const path = `/v1/convai/agent-testing/${encodeURIComponent(propsValue.testId)}`;
+ const { id: _id, ...current } = await elevenlabsClient.request<Record<string, unknown>>({ auth, method: HttpMethod.GET, path });
+ return elevenlabsClient.request<Record<string, unknown>>({
+ auth,
+ method: HttpMethod.PUT,
+ path,
+ body: {
+ ...current,
+ ...elevenlabsClient.compact({
+ values: {
+ name: propsValue.name,
+ success_condition: propsValue.successCondition,
+ success_examples: propsValue.successExamples,
+ failure_examples: propsValue.failureExamples,
+ },
+ }),
+ },
+ });
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-agent.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-agent.ts
new file mode 100644
index 00000000000..0af04ff14a2
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-agent.ts
@@ -0,0 +1,35 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetAgentOutputSchema } from '../../output-schemas';
+
+export const updateAgent = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_update_agent',
+ outputSchema: elevenlabsGetAgentOutputSchema,
+ displayName: 'Update Agent',
+ description: 'Change the settings of an agent',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Updates an agent. Only the supplied fields change; conversation_config and platform_settings are merged by the API. Use Get Agent first to see the current values.',
+ idempotent: true,
+ },
+ props: {
+ agentId: Property.ShortText({ displayName: 'Agent ID', description: 'The agent_id from List Agents or Create Agent', required: true }),
+ name: Property.ShortText({ displayName: 'Name', description: 'New agent name', required: false }),
+ conversationConfig: Property.Json({ displayName: 'Conversation Config', description: 'Partial configuration to change, such as {"agent": {"first_message": "Hello"}}', required: false }),
+ platformSettings: Property.Json({ displayName: 'Platform Settings', description: 'Partial platform settings to change', required: false }),
+ tags: Property.Array({ displayName: 'Tags', description: 'Replaces the tags', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.PATCH,
+ path: `/v1/convai/agents/${encodeURIComponent(propsValue.agentId)}`,
+ body: elevenlabsClient.compact({ values: { name: propsValue.name, conversation_config: propsValue.conversationConfig, platform_settings: propsValue.platformSettings, tags: propsValue.tags } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-audio-native-content.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-audio-native-content.ts
new file mode 100644
index 00000000000..7af8bdfe8a6
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-audio-native-content.ts
@@ -0,0 +1,43 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import FormData from 'form-data';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsUpdateAudioNativeContentOutputSchema } from '../../output-schemas';
+
+export const updateAudioNativeContent = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_update_audio_native_content',
+ outputSchema: elevenlabsUpdateAudioNativeContentOutputSchema,
+ displayName: 'Update Audio Native Content',
+ description: 'Replace the article of an Audio Native project',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Replaces the article content of an Audio Native project with an uploaded file, optionally regenerating and publishing the audio. Re-applying the same file gives the same result.',
+ idempotent: true,
+ },
+ props: {
+ projectId: Property.ShortText({ displayName: 'Project ID', description: 'The project_id returned by Create Audio Native Project', required: true }),
+ file: Property.File({ displayName: 'File', description: 'New article as a .txt or .html file', required: true }),
+ autoConvert: Property.StaticDropdown({ displayName: 'Auto Convert', description: 'Regenerate the audio', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ autoPublish: Property.StaticDropdown({ displayName: 'Auto Publish', description: 'Publish after conversion', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const formData = new FormData();
+ formData.append('file', propsValue.file.data, propsValue.file.filename);
+ if (propsValue.autoConvert !== undefined) {
+ formData.append('auto_convert', String(propsValue.autoConvert));
+ }
+ if (propsValue.autoPublish !== undefined) {
+ formData.append('auto_publish', String(propsValue.autoPublish));
+ }
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.POST,
+ path: `/v1/audio-native/${encodeURIComponent(propsValue.projectId)}/content`,
+ formData,
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-kb-document.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-kb-document.ts
new file mode 100644
index 00000000000..4a6c96e6514
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-kb-document.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsGetKbDocumentOutputSchema } from '../../output-schemas';
+
+export const updateKbDocument = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_update_kb_document',
+ outputSchema: elevenlabsGetKbDocumentOutputSchema,
+ displayName: 'Update KB Document',
+ description: 'Rename or edit a knowledge base document',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Renames a knowledge base document or replaces its text content. Only the supplied fields change.',
+ idempotent: true,
+ },
+ props: {
+ documentationId: Property.ShortText({ displayName: 'Documentation ID', description: 'The document id from List KB Documents or a create action', required: true }),
+ name: Property.ShortText({ displayName: 'Name', description: 'New name', required: false }),
+ content: Property.LongText({ displayName: 'Content', description: 'New text content', required: false }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.PATCH,
+ path: `/v1/convai/knowledge-base/${encodeURIComponent(propsValue.documentationId)}`,
+ body: elevenlabsClient.compact({ values: { name: propsValue.name, content: propsValue.content } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-pronunciation-dictionary.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-pronunciation-dictionary.ts
new file mode 100644
index 00000000000..40a6d38cc5b
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-pronunciation-dictionary.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsUpdatePronunciationDictionaryOutputSchema } from '../../output-schemas';
+
+export const updatePronunciationDictionary = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_update_pronunciation_dictionary',
+ outputSchema: elevenlabsUpdatePronunciationDictionaryOutputSchema,
+ displayName: 'Update Pronunciation Dictionary',
+ description: 'Rename or archive a pronunciation dictionary',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Renames a pronunciation dictionary or archives it. Only the supplied fields change.',
+ idempotent: true,
+ },
+ props: {
+ pronunciationDictionaryId: Property.ShortText({ displayName: 'Pronunciation Dictionary ID', description: 'The id from Create Pronunciation Dictionary or List Pronunciation Dictionaries', required: true }),
+ name: Property.ShortText({ displayName: 'Name', required: false }),
+ archived: Property.StaticDropdown({ displayName: 'Archived', description: 'Archive the dictionary', required: false, options: { options: [{ label: 'Yes', value: true }, { label: 'No', value: false }] } }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.PATCH,
+ path: `/v1/pronunciation-dictionaries/${encodeURIComponent(propsValue.pronunciationDictionaryId)}`,
+ body: elevenlabsClient.compact({ values: { name: propsValue.name, archived: propsValue.archived } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-secret.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-secret.ts
new file mode 100644
index 00000000000..c8280f459b5
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-secret.ts
@@ -0,0 +1,33 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateSecretOutputSchema } from '../../output-schemas';
+
+export const updateSecret = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_update_secret',
+ outputSchema: elevenlabsCreateSecretOutputSchema,
+ displayName: 'Update Secret',
+ description: 'Change a workspace secret',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Replaces the name and value of a secret. Both are required. Re-applying the same values is safe.',
+ idempotent: true,
+ },
+ props: {
+ secretId: Property.ShortText({ displayName: 'Secret ID', description: 'The secret_id from List Secrets', required: true }),
+ name: Property.ShortText({ displayName: 'Name', description: 'Secret name', required: true }),
+ value: Property.ShortText({ displayName: 'Value', description: 'Secret value', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.PATCH,
+ path: `/v1/convai/secrets/${encodeURIComponent(propsValue.secretId)}`,
+ body: elevenlabsClient.compact({ values: { name: propsValue.name, value: propsValue.value, type: 'update' } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-tool.ts b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-tool.ts
new file mode 100644
index 00000000000..d0c33a9f9eb
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/ai/update-tool.ts
@@ -0,0 +1,32 @@
+import { createAction, Property } from '@activepieces/pieces-framework';
+import { HttpMethod } from '@activepieces/pieces-common';
+import { elevenlabsAuth } from '../../auth';
+import { elevenlabsClient } from '../../client';
+import { elevenlabsCreateToolOutputSchema } from '../../output-schemas';
+
+export const updateTool = createAction({
+ auth: elevenlabsAuth,
+ name: 'elevenlabs_update_tool',
+ outputSchema: elevenlabsCreateToolOutputSchema,
+ displayName: 'Update Tool',
+ description: 'Change an agent tool',
+ audience: 'ai',
+ classification: 'WRITE',
+ aiMetadata: {
+ description: 'Replaces the configuration of a tool. tool_config is required in full, so start from Get Tool. Re-applying the same config is safe.',
+ idempotent: true,
+ },
+ props: {
+ toolId: Property.ShortText({ displayName: 'Tool ID', description: 'The tool id from List Tools or Create Tool', required: true }),
+ toolConfig: Property.Json({ displayName: 'Tool Config', description: 'Full tool configuration, from Get Tool', required: true }),
+ },
+ async run({ auth, propsValue }) {
+ const response = await elevenlabsClient.request<Record<string, unknown> | undefined>({
+ auth,
+ method: HttpMethod.PATCH,
+ path: `/v1/convai/tools/${encodeURIComponent(propsValue.toolId)}`,
+ body: elevenlabsClient.compact({ values: { tool_config: propsValue.toolConfig } }),
+ });
+ return response ?? { success: true };
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/actions/text-to-speech-action.ts b/packages/pieces/community/elevenlabs/src/lib/actions/text-to-speech-action.ts
index d4981b37c6d..824aefa04ac 100644
--- a/packages/pieces/community/elevenlabs/src/lib/actions/text-to-speech-action.ts
+++ b/packages/pieces/community/elevenlabs/src/lib/actions/text-to-speech-action.ts
@@ -1,6 +1,7 @@
import { Property, createAction } from '@activepieces/pieces-framework';
import { createClient, ExtendedReadableStream } from '../common';
-import { elevenlabsAuth } from '../..';
+import { elevenlabsAuth } from '../auth';
+import { elevenlabsTextToSpeechOutputSchema } from '../output-schemas';
export const textToSpeech = createAction({
description: 'Convert text to speech using Elevenlabs',
@@ -8,6 +9,7 @@ export const textToSpeech = createAction({
aiMetadata: { description: 'Synthesizes spoken audio from a text string using a chosen ElevenLabs voice, returning an MP3 file. Use to turn written content into a narrated voiceover or speech clip. Requires a voice (selected from the account\'s available voices) and the text; the model is optional and defaults to ElevenLabs\' default. Not idempotent — each call generates a new audio file.', idempotent: false },
displayName: 'Text to Speech',
name: 'elevenlabs-text-to-speech',
+ outputSchema: elevenlabsTextToSpeechOutputSchema,
classification: 'READ',
auth: elevenlabsAuth,
props: {
diff --git a/packages/pieces/community/elevenlabs/src/lib/auth.ts b/packages/pieces/community/elevenlabs/src/lib/auth.ts
new file mode 100644
index 00000000000..d27e5de8c79
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/auth.ts
@@ -0,0 +1,52 @@
+import { PieceAuth, Property, AppConnectionType } from '@activepieces/pieces-framework';
+import { createClient, ELEVEN_RESIDENCY, ElevenResidency } from './common';
+
+const markdownDescription = `
+Follow these instructions to get your API Key:
+1. Visit your Elevenlabs dashboard.
+2. Once there, click on your account in the bottom left corner.
+3. Press Profile + API Key.
+4. Create or copy your API Key. Enable the permissions for every area you plan to use: user, text to speech, speech to speech, voices, models, history, dubbing, Audio Native, pronunciation dictionaries, and Conversational AI (agents, tests, conversations, knowledge base, tools and secrets). An action whose area is not enabled on the key returns a permission error from ElevenLabs.
+`;
+
+export const elevenlabsAuth = PieceAuth.CustomAuth({
+ required: true,
+ description: markdownDescription,
+ props: {
+ region: Property.StaticDropdown<ElevenResidency>({
+ displayName: 'Region',
+ description: 'Use according URL in Custom API Call pieces',
+ required: true,
+ options: {
+ placeholder: 'Please select your account region...',
+ options: [
+ { label: `default - ${ELEVEN_RESIDENCY['default'].base}`, value: 'default' },
+ { label: `US - ${ELEVEN_RESIDENCY['us'].base}`, value: 'us' },
+ { label: `EU - ${ELEVEN_RESIDENCY['eu'].base}`, value: 'eu' },
+ ],
+ },
+ }),
+ apiKey: PieceAuth.SecretText({
+ displayName: 'API Key',
+ required: true,
+ }),
+ },
+ validate: async ({ auth }) => {
+ try {
+ const elevenlabs = createClient({
+ type: AppConnectionType.CUSTOM_AUTH,
+ props: auth,
+ });
+ await elevenlabs.user.get();
+
+ return {
+ valid: true,
+ };
+ } catch (error) {
+ return {
+ valid: false,
+ error: 'Invalid API Key or Region.',
+ };
+ }
+ },
+});
diff --git a/packages/pieces/community/elevenlabs/src/lib/client.ts b/packages/pieces/community/elevenlabs/src/lib/client.ts
new file mode 100644
index 00000000000..4e4687ea0fd
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/client.ts
@@ -0,0 +1,117 @@
+import { httpClient, HttpError, HttpMethod } from '@activepieces/pieces-common';
+import { AppConnectionValueForAuthProperty } from '@activepieces/pieces-framework';
+import FormData from 'form-data';
+import { elevenlabsAuth } from './auth';
+import { getApiKey, getRegionApiUrl } from './common';
+
+type ElevenlabsAuth = AppConnectionValueForAuthProperty<typeof elevenlabsAuth>;
+
+type QueryValue = string | number | boolean | undefined | null;
+
+async function request<T>({ auth, method, path, queryParams, body, formData }: RequestParams): Promise<T> {
+ try {
+ const response = await httpClient.sendRequest<T>({
+ method,
+ url: `${getRegionApiUrl(auth.props.region)}${path}`,
+ headers: {
+ 'xi-api-key': getApiKey(auth),
+ ...(formData ? formData.getHeaders() : {}),
+ },
+ queryParams: toQuery({ params: queryParams }),
+ body: formData ?? body,
+ });
+ return response.body;
+ } catch (error) {
+ throw new Error(describeError({ error }));
+ }
+}
+
+async function download({ auth, method, path, queryParams, body, formData }: DownloadParams): Promise<DownloadedFile> {
+ try {
+ const response = await httpClient.sendRequest<ArrayBuffer>({
+ method,
+ url: `${getRegionApiUrl(auth.props.region)}${path}`,
+ headers: {
+ 'xi-api-key': getApiKey(auth),
+ ...(formData ? formData.getHeaders() : {}),
+ },
+ queryParams: toQuery({ params: queryParams }),
+ body: formData ?? body,
+ responseType: 'arraybuffer',
+ });
+ const contentType = response.headers?.['content-type'];
+ return {
+ data: Buffer.from(response.body),
+ contentType: typeof contentType === 'string' ? contentType : 'application/octet-stream',
+ };
+ } catch (error) {
+ throw new Error(describeError({ error }));
+ }
+}
+
+function compact({ values }: { values: Record<string, unknown> }): Record<string, unknown> {
+ return Object.fromEntries(Object.entries(values).filter(([, value]) => value !== undefined && value !== null && value !== ''));
+}
+
+function toQuery({ params }: { params?: Record<string, QueryValue> }): Record<string, string> {
+ return Object.fromEntries(
+ Object.entries(params ?? {})
+ .filter(([, value]) => value !== undefined && value !== null && value !== '')
+ .map(([key, value]) => [key, String(value)]),
+ );
+}
+
+function describeError({ error }: { error: unknown }): string {
+ if (!(error instanceof HttpError)) {
+ return error instanceof Error ? error.message : 'ElevenLabs request failed';
+ }
+ const status = error.response.status;
+ const detail = readDetail({ body: error.response.body });
+ const hint = status === 401 || status === 403 ? ' (check the API key permissions for this endpoint)' : status === 404 ? ' (not found)' : status === 429 ? ' (rate limited)' : '';
+ return `ElevenLabs API error ${status}: ${detail}${hint}`;
+}
+
+function readDetail({ body }: { body: unknown }): string {
+ if (typeof body !== 'object' || body === null || !('detail' in body)) {
+ return typeof body === 'string' ? body : JSON.stringify(body);
+ }
+ const detail = body.detail;
+ if (typeof detail === 'string') {
+ return detail;
+ }
+ if (typeof detail === 'object' && detail !== null && 'message' in detail && typeof detail.message === 'string') {
+ return detail.message;
+ }
+ return JSON.stringify(detail);
+}
+
+function extensionFor({ contentType }: { contentType: string }): string {
+ if (contentType.includes('zip')) return 'zip';
+ if (contentType.includes('wav')) return 'wav';
+ if (contentType.includes('mpeg') || contentType.includes('mp3')) return 'mp3';
+ if (contentType.includes('mp4')) return 'mp4';
+ if (contentType.includes('json')) return 'json';
+ return 'bin';
+}
+
+export const elevenlabsClient = { request, download, compact, extensionFor };
+
+type RequestParams = {
+ auth: ElevenlabsAuth;
+ method: HttpMethod;
+ path: string;
+ queryParams?: Record<string, QueryValue>;
+ body?: Record<string, unknown>;
+ formData?: FormData;
+};
+
+type DownloadParams = {
+ auth: ElevenlabsAuth;
+ method: HttpMethod;
+ path: string;
+ queryParams?: Record<string, QueryValue>;
+ body?: Record<string, unknown>;
+ formData?: FormData;
+};
+
+type DownloadedFile = { data: Buffer; contentType: string };
diff --git a/packages/pieces/community/elevenlabs/src/lib/common.ts b/packages/pieces/community/elevenlabs/src/lib/common.ts
index fed724ee196..4775472734d 100644
--- a/packages/pieces/community/elevenlabs/src/lib/common.ts
+++ b/packages/pieces/community/elevenlabs/src/lib/common.ts
@@ -1,7 +1,7 @@
import { ElevenLabsClient } from '@elevenlabs/elevenlabs-js';
import { ElevenLabsEnvironment } from '@elevenlabs/elevenlabs-js/environments';
import { AppConnectionValueForAuthProperty } from '@activepieces/pieces-framework';
-import { elevenlabsAuth } from '..';
+import { elevenlabsAuth } from './auth';
export type ElevenResidency = 'default' | 'us' | 'eu';
diff --git a/packages/pieces/community/elevenlabs/src/lib/output-schemas.ts b/packages/pieces/community/elevenlabs/src/lib/output-schemas.ts
new file mode 100644
index 00000000000..18776d33ef6
--- /dev/null
+++ b/packages/pieces/community/elevenlabs/src/lib/output-schemas.ts
@@ -0,0 +1,2875 @@
+import { OutputSchema } from '@activepieces/pieces-framework';
+
+export const elevenlabsCreateAgentOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'main_branch_id', label: 'Main Branch ID' },
+ { key: 'initial_version_id', label: 'Initial Version ID' },
+ ],
+};
+
+export const elevenlabsGetAgentOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'name', label: 'Name' },
+ {
+ key: 'conversation_config',
+ label: 'Conversation Config',
+ children: [
+ {
+ key: 'asr',
+ label: 'Asr',
+ children: [
+ { key: 'quality', label: 'Quality' },
+ { key: 'provider', label: 'Provider' },
+ { key: 'user_input_audio_format', label: 'User Input Audio Format' },
+ { key: 'keywords', label: 'Keywords' },
+ ],
+ },
+ {
+ key: 'turn',
+ label: 'Turn',
+ children: [
+ { key: 'turn_timeout', label: 'Turn Timeout', format: 'number' },
+ { key: 'initial_wait_time', label: 'Initial Wait Time' },
+ { key: 'silence_end_call_timeout', label: 'Silence End Call Timeout', format: 'number' },
+ { key: 'mode', label: 'Mode' },
+ { key: 'turn_eagerness', label: 'Turn Eagerness' },
+ { key: 'spelling_patience', label: 'Spelling Patience' },
+ { key: 'speculative_turn', label: 'Speculative Turn', format: 'boolean' },
+ { key: 'retranscribe_on_turn_timeout', label: 'Retranscribe On Turn Timeout', format: 'boolean' },
+ { key: 'turn_model', label: 'Turn Model' },
+ { key: 'interruption_ignore_terms', label: 'Interruption Ignore Terms' },
+ { key: 'interruption_ignore_term_languages', label: 'Interruption Ignore Term Languages' },
+ {
+ key: 'merge_with_default_ignore_terms',
+ label: 'Merge With Default Ignore Terms',
+ format: 'boolean',
+ },
+ {
+ key: 'transcribe_on_disabled_interruptions',
+ label: 'Transcribe On Disabled Interruptions',
+ format: 'boolean',
+ },
+ {
+ key: 'soft_timeout_config',
+ label: 'Soft Timeout Config',
+ children: [
+ { key: 'timeout_seconds', label: 'Timeout Seconds', format: 'number' },
+ { key: 'message', label: 'Message' },
+ { key: 'additional_soft_timeout_messages', label: 'Additional Soft Timeout Messages' },
+ { key: 'use_llm_generated_message', label: 'Use Llm Generated Message', format: 'boolean' },
+ { key: 'randomize_fillers', label: 'Randomize Fillers', format: 'boolean' },
+ {
+ key: 'max_soft_timeouts_per_generation',
+ label: 'Max Soft Timeouts Per Generation',
+ format: 'number',
+ },
+ {
+ key: 'llm_generated_message_prompt_override',
+ label: 'Llm Generated Message Prompt Override',
+ },
+ {
+ key: 'disable_until_first_user_message',
+ label: 'Disable Until First User Message',
+ format: 'boolean',
+ },
+ ],
+ },
+ ],
+ },
+ {
+ key: 'tts',
+ label: 'Tts',
+ children: [
+ { key: 'model_id', label: 'Model ID' },
+ { key: 'voice_id', label: 'Voice ID' },
+ { key: 'supported_voices', label: 'Supported Voices' },
+ { key: 'expressive_mode', label: 'Expressive Mode', format: 'boolean' },
+ { key: 'suggested_audio_tags', label: 'Suggested Audio Tags' },
+ { key: 'agent_output_audio_format', label: 'Agent Output Audio Format' },
+ { key: 'optimize_streaming_latency', label: 'Optimize Streaming Latency', format: 'number' },
+ { key: 'stability', label: 'Stability', format: 'number' },
+ { key: 'speed', label: 'Speed', format: 'number' },
+ { key: 'similarity_boost', label: 'Similarity Boost', format: 'number' },
+ { key: 'text_normalisation_type', label: 'Text Normalisation Type' },
+ { key: 'pronunciation_dictionary_locators', label: 'Pronunciation Dictionary Locators' },
+ { key: 'enable_phoneme_tags', label: 'Enable Phoneme Tags', format: 'boolean' },
+ { key: 'audio_effects', label: 'Audio Effects' },
+ ],
+ },
+ {
+ key: 'conversation',
+ label: 'Conversation',
+ children: [
+ { key: 'text_only', label: 'Text Only', format: 'boolean' },
+ { key: 'max_duration_seconds', label: 'Max Duration Seconds', format: 'number' },
+ {
+ key: 'max_duration_seconds_after_last_agent_message',
+ label: 'Max Duration Seconds After Last Agent Message',
+ },
+ { key: 'client_events', label: 'Client Events' },
+ {
+ key: 'file_input',
+ label: 'File Input',
+ children: [
+ { key: 'enabled', label: 'Enabled', format: 'boolean' },
+ { key: 'max_files_in_memory', label: 'Max Files In Memory', format: 'number' },
+ { key: 'max_files_per_conversation', label: 'Max Files Per Conversation', format: 'number' },
+ ],
+ },
+ { key: 'monitoring_enabled', label: 'Monitoring Enabled', format: 'boolean' },
+ { key: 'monitoring_events', label: 'Monitoring Events' },
+ { key: 'dtmf_input_settings', label: 'Dtmf Input Settings' },
+ {
+ key: 'background_sound',
+ label: 'Background Sound',
+ children: [
+ { key: 'source_type', label: 'Source Type' },
+ { key: 'source_id', label: 'Source ID' },
+ { key: 'volume', label: 'Volume', format: 'number' },
+ { key: 'crossfade_loop', label: 'Crossfade Loop', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'compaction',
+ label: 'Compaction',
+ children: [
+ { key: 'enabled', label: 'Enabled' },
+ { key: 'soft_trigger_fraction', label: 'Soft Trigger Fraction' },
+ { key: 'tail_size', label: 'Tail Size' },
+ { key: 'min_reclaimable_tokens', label: 'Min Reclaimable Tokens' },
+ ],
+ },
+ { key: 'source_attribution', label: 'Source Attribution', format: 'boolean' },
+ ],
+ },
+ { key: 'language_presets', label: 'Language Presets' },
+ {
+ key: 'vad',
+ label: 'Vad',
+ children: [
+ { key: 'background_voice_detection', label: 'Background Voice Detection', format: 'boolean' },
+ ],
+ },
+ { key: 'realtime_model', label: 'Realtime Model' },
+ {
+ key: 'agent',
+ label: 'Agent',
+ children: [
+ { key: 'first_message', label: 'First Message' },
+ { key: 'language', label: 'Language' },
+ { key: 'hinglish_mode', label: 'Hinglish Mode', format: 'boolean' },
+ {
+ key: 'dynamic_variables',
+ label: 'Dynamic Variables',
+ children: [
+ { key: 'dynamic_variable_placeholders', label: 'Dynamic Variable Placeholders' },
+ ],
+ },
+ {
+ key: 'disable_first_message_interruptions',
+ label: 'Disable First Message Interruptions',
+ format: 'boolean',
+ },
+ { key: 'max_conversation_duration_message', label: 'Max Conversation Duration Message' },
+ { key: 'text_behavior_overrides', label: 'Text Behavior Overrides' },
+ { key: 'subagents', label: 'Subagents' },
+ {
+ key: 'prompt',
+ label: 'Prompt',
+ children: [
+ { key: 'prompt', label: 'Prompt' },
+ { key: 'llm', label: 'Llm' },
+ { key: 'reasoning_effort', label: 'Reasoning Effort' },
+ { key: 'service_tier', label: 'Service Tier' },
+ { key: 'opener', label: 'Opener' },
+ { key: 'thinking_budget', label: 'Thinking Budget' },
+ { key: 'enable_reasoning_summary', label: 'Enable Reasoning Summary', format: 'boolean' },
+ { key: 'temperature', label: 'Temperature', format: 'number' },
+ { key: 'max_tokens', label: 'Max Tokens', format: 'number' },
+ { key: 'tool_ids', label: 'Tool IDs' },
+ {
+ key: 'built_in_tools',
+ label: 'Built In Tools',
+ children: [
+ { key: 'transfer_to_agent', label: 'Transfer To Agent' },
+ { key: 'update_state', label: 'Update State' },
+ { key: 'memory_entry_search', label: 'Memory Entry Search' },
+ { key: 'run_subagent', label: 'Run Subagent' },
+ { key: 'flag_issue_for_review', label: 'Flag Issue For Review' },
+ { key: 'end_call', label: 'End Call' },
+ { key: 'language_detection', label: 'Language Detection' },
+ { key: 'transfer_to_number', label: 'Transfer To Number' },
+ { key: 'skip_turn', label: 'Skip Turn' },
+ { key: 'play_keypad_touch_tone', label: 'Play Keypad Touch Tone' },
+ { key: 'voicemail_detection', label: 'Voicemail Detection' },
+ { key: 'transfer_to_genesys', label: 'Transfer To Genesys' },
+ { key: 'transfer_to_genesys_chat', label: 'Transfer To Genesys Chat' },
+ { key: 'transfer_to_genesys_bot', label: 'Transfer To Genesys Bot' },
+ ],
+ },
+ { key: 'enable_parallel_tool_calls', label: 'Enable Parallel Tool Calls', format: 'boolean' },
+ { key: 'mcp_server_ids', label: 'Mcp Server IDs' },
+ { key: 'native_mcp_server_ids', label: 'Native Mcp Server IDs' },
+ { key: 'knowledge_base', label: 'Knowledge Base' },
+ { key: 'custom_llm', label: 'Custom Llm' },
+ { key: 'bedrock_llm', label: 'Bedrock Llm' },
+ { key: 'speech_engine', label: 'Speech Engine' },
+ { key: 'ignore_default_personality', label: 'Ignore Default Personality', format: 'boolean' },
+ {
+ key: 'rag',
+ label: 'Rag',
+ children: [
+ { key: 'enabled', label: 'Enabled', format: 'boolean' },
+ { key: 'embedding_model', label: 'Embedding Model' },
+ { key: 'optional_rag_enabled', label: 'Optional Rag Enabled', format: 'boolean' },
+ { key: 'max_vector_distance', label: 'Max Vector Distance', format: 'number' },
+ { key: 'max_documents_length', label: 'Max Documents Length', format: 'number' },
+ {
+ key: 'max_retrieved_rag_chunks_count',
+ label: 'Max Retrieved Rag Chunks Count',
+ format: 'number',
+ },
+ { key: 'num_candidates', label: 'Num Candidates' },
+ { key: 'query_rewrite_prompt_override', label: 'Query Rewrite Prompt Override' },
+ { key: 'knowledge_base_tool_info', label: 'Knowledge Base Tool Info' },
+ { key: 'include_source_urls', label: 'Include Source Urls', format: 'boolean' },
+ ],
+ },
+ { key: 'timezone', label: 'Timezone' },
+ {
+ key: 'backup_llm_config',
+ label: 'Backup Llm Config',
+ children: [
+ { key: 'preference', label: 'Preference' },
+ ],
+ },
+ { key: 'cascade_timeout_seconds', label: 'Cascade Timeout Seconds', format: 'number' },
+ { key: 'tools', label: 'Tools' },
+ ],
+ },
+ ],
+ },
+ ],
+ },
+ {
+ key: 'metadata',
+ label: 'Metadata',
+ children: [
+ { key: 'created_at_unix_secs', label: 'Created At Unix Secs', format: 'number' },
+ { key: 'updated_at_unix_secs', label: 'Updated At Unix Secs', format: 'number' },
+ ],
+ },
+ {
+ key: 'platform_settings',
+ label: 'Platform Settings',
+ children: [
+ {
+ key: 'evaluation',
+ label: 'Evaluation',
+ children: [
+ { key: 'criteria', label: 'Criteria' },
+ ],
+ },
+ {
+ key: 'widget',
+ label: 'Widget',
+ children: [
+ { key: 'variant', label: 'Variant' },
+ { key: 'placement', label: 'Placement' },
+ { key: 'expandable', label: 'Expandable' },
+ {
+ key: 'avatar',
+ label: 'Avatar',
+ children: [
+ { key: 'type', label: 'Type' },
+ { key: 'color_1', label: 'Color 1' },
+ { key: 'color_2', label: 'Color 2' },
+ ],
+ },
+ { key: 'feedback_mode', label: 'Feedback Mode' },
+ {
+ key: 'end_feedback',
+ label: 'End Feedback',
+ children: [
+ { key: 'type', label: 'Type' },
+ ],
+ },
+ { key: 'bg_color', label: 'Bg Color' },
+ { key: 'text_color', label: 'Text Color' },
+ { key: 'btn_color', label: 'Btn Color' },
+ { key: 'btn_text_color', label: 'Btn Text Color' },
+ { key: 'border_color', label: 'Border Color' },
+ { key: 'focus_color', label: 'Focus Color' },
+ { key: 'border_radius', label: 'Border Radius' },
+ { key: 'btn_radius', label: 'Btn Radius' },
+ { key: 'action_text', label: 'Action Text' },
+ { key: 'start_call_text', label: 'Start Call Text' },
+ { key: 'end_call_text', label: 'End Call Text' },
+ { key: 'expand_text', label: 'Expand Text' },
+ { key: 'listening_text', label: 'Listening Text' },
+ { key: 'speaking_text', label: 'Speaking Text' },
+ { key: 'shareable_page_text', label: 'Shareable Page Text' },
+ { key: 'shareable_page_show_terms', label: 'Shareable Page Show Terms', format: 'boolean' },
+ { key: 'terms_text', label: 'Terms Text' },
+ { key: 'terms_html', label: 'Terms HTML' },
+ { key: 'terms_key', label: 'Terms Key' },
+ { key: 'show_avatar_when_collapsed', label: 'Show Avatar When Collapsed', format: 'boolean' },
+ { key: 'disable_banner', label: 'Disable Banner', format: 'boolean' },
+ { key: 'override_link', label: 'Override Link' },
+ { key: 'markdown_link_allowed_hosts', label: 'Markdown Link Allowed Hosts' },
+ { key: 'markdown_link_include_www', label: 'Markdown Link Include Www', format: 'boolean' },
+ { key: 'markdown_link_allow_http', label: 'Markdown Link Allow Http', format: 'boolean' },
+ { key: 'mic_muting_enabled', label: 'Mic Muting Enabled', format: 'boolean' },
+ { key: 'transcript_enabled', label: 'Transcript Enabled', format: 'boolean' },
+ { key: 'text_input_enabled', label: 'Text Input Enabled', format: 'boolean' },
+ {
+ key: 'conversation_mode_toggle_enabled',
+ label: 'Conversation Mode Toggle Enabled',
+ format: 'boolean',
+ },
+ { key: 'default_expanded', label: 'Default Expanded', format: 'boolean' },
+ { key: 'always_expanded', label: 'Always Expanded', format: 'boolean' },
+ { key: 'dismissible', label: 'Dismissible', format: 'boolean' },
+ { key: 'show_agent_status', label: 'Show Agent Status', format: 'boolean' },
+ { key: 'show_conversation_id', label: 'Show Conversation ID', format: 'boolean' },
+ { key: 'strip_audio_tags', label: 'Strip Audio Tags', format: 'boolean' },
+ { key: 'syntax_highlight_theme', label: 'Syntax Highlight Theme' },
+ {
+ key: 'text_contents',
+ label: 'Text Contents',
+ children: [
+ { key: 'main_label', label: 'Main Label' },
+ { key: 'start_call', label: 'Start Call' },
+ { key: 'start_chat', label: 'Start Chat' },
+ { key: 'new_call', label: 'New Call' },
+ { key: 'end_call', label: 'End Call' },
+ { key: 'mute_microphone', label: 'Mute Microphone' },
+ { key: 'change_language', label: 'Change Language' },
+ { key: 'collapse', label: 'Collapse' },
+ { key: 'expand', label: 'Expand' },
+ { key: 'copied', label: 'Copied' },
+ { key: 'accept_terms', label: 'Accept Terms' },
+ { key: 'dismiss_terms', label: 'Dismiss Terms' },
+ { key: 'listening_status', label: 'Listening Status' },
+ { key: 'speaking_status', label: 'Speaking Status' },
+ { key: 'connecting_status', label: 'Connecting Status' },
+ { key: 'chatting_status', label: 'Chatting Status' },
+ { key: 'queue_waiting_status', label: 'Queue Waiting Status' },
+ { key: 'queue_waiting_status_short', label: 'Queue Waiting Status Short' },
+ { key: 'input_label', label: 'Input Label' },
+ { key: 'input_placeholder', label: 'Input Placeholder' },
+ { key: 'input_placeholder_text_only', label: 'Input Placeholder Text Only' },
+ { key: 'input_placeholder_new_conversation', label: 'Input Placeholder New Conversation' },
+ { key: 'user_ended_conversation', label: 'User Ended Conversation' },
+ { key: 'agent_ended_conversation', label: 'Agent Ended Conversation' },
+ { key: 'conversation_id', label: 'Conversation ID' },
+ { key: 'error_occurred', label: 'Error Occurred' },
+ { key: 'queue_timed_out', label: 'Queue Timed Out' },
+ { key: 'copy_id', label: 'Copy ID' },
+ { key: 'initiate_feedback', label: 'Initiate Feedback' },
+ { key: 'request_follow_up_feedback', label: 'Request Follow Up Feedback' },
+ { key: 'thanks_for_feedback', label: 'Thanks For Feedback' },
+ { key: 'thanks_for_feedback_details', label: 'Thanks For Feedback Details' },
+ { key: 'follow_up_feedback_placeholder', label: 'Follow Up Feedback Placeholder' },
+ { key: 'submit', label: 'Submit' },
+ { key: 'go_back', label: 'Go Back' },
+ { key: 'send_message', label: 'Send Message' },
+ { key: 'text_mode', label: 'Text Mode' },
+ { key: 'voice_mode', label: 'Voice Mode' },
+ { key: 'switched_to_text_mode', label: 'Switched To Text Mode' },
+ { key: 'switched_to_voice_mode', label: 'Switched To Voice Mode' },
+ { key: 'copy', label: 'Copy' },
+ { key: 'download', label: 'Download' },
+ { key: 'wrap', label: 'Wrap' },
+ { key: 'agent_working', label: 'Agent Working' },
+ { key: 'agent_done', label: 'Agent Done' },
+ { key: 'agent_error', label: 'Agent Error' },
+ { key: 'attach_file', label: 'Attach File' },
+ { key: 'remove_file', label: 'Remove File' },
+ { key: 'file_upload_error', label: 'File Upload Error' },
+ { key: 'file_type_unsupported', label: 'File Type Unsupported' },
+ { key: 'file_too_large', label: 'File Too Large' },
+ { key: 'file_limit_reached', label: 'File Limit Reached' },
+ { key: 'typing_indicator', label: 'Typing Indicator' },
+ { key: 'rich_content_unavailable', label: 'Rich Content Unavailable' },
+ ],
+ },
+ {
+ key: 'styles',
+ label: 'Styles',
+ children: [
+ { key: 'base', label: 'Base' },
+ { key: 'base_hover', label: 'Base Hover' },
+ { key: 'base_active', label: 'Base Active' },
+ { key: 'base_border', label: 'Base Border' },
+ { key: 'base_subtle', label: 'Base Subtle' },
+ { key: 'base_primary', label: 'Base Primary' },
+ { key: 'base_error', label: 'Base Error' },
+ { key: 'accent', label: 'Accent' },
+ { key: 'accent_hover', label: 'Accent Hover' },
+ { key: 'accent_active', label: 'Accent Active' },
+ { key: 'accent_border', label: 'Accent Border' },
+ { key: 'accent_subtle', label: 'Accent Subtle' },
+ { key: 'accent_primary', label: 'Accent Primary' },
+ { key: 'overlay_padding', label: 'Overlay Padding' },
+ { key: 'button_radius', label: 'Button Radius' },
+ { key: 'input_radius', label: 'Input Radius' },
+ { key: 'bubble_radius', label: 'Bubble Radius' },
+ { key: 'sheet_radius', label: 'Sheet Radius' },
+ { key: 'compact_sheet_radius', label: 'Compact Sheet Radius' },
+ { key: 'dropdown_sheet_radius', label: 'Dropdown Sheet Radius' },
+ ],
+ },
+ { key: 'show_resize_button', label: 'Show Resize Button', format: 'boolean' },
+ { key: 'language_selector', label: 'Language Selector', format: 'boolean' },
+ { key: 'supports_text_only', label: 'Supports Text Only', format: 'boolean' },
+ { key: 'custom_avatar_path', label: 'Custom Avatar Path' },
+ { key: 'language_presets', label: 'Language Presets' },
+ { key: 'first_message_quick_replies', label: 'First Message Quick Replies' },
+ ],
+ },
+ { key: 'data_collection', label: 'Data Collection' },
+ { key: 'data_collection_scopes', label: 'Data Collection Scopes' },
+ {
+ key: 'analysis_items',
+ label: 'Analysis Items',
+ children: [
+ { key: 'evaluation_criteria', label: 'Evaluation Criteria' },
+ { key: 'data_collection', label: 'Data Collection' },
+ ],
+ },
+ {
+ key: 'overrides',
+ label: 'Overrides',
+ children: [
+ {
+ key: 'conversation_config_override',
+ label: 'Conversation Config Override',
+ children: [
+ {
+ key: 'asr',
+ label: 'Asr',
+ children: [
+ { key: 'keywords', label: 'Keywords', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'turn',
+ label: 'Turn',
+ children: [
+ { key: 'soft_timeout_config', label: 'Soft Timeout Config' },
+ ],
+ },
+ {
+ key: 'tts',
+ label: 'Tts',
+ children: [
+ { key: 'model_id', label: 'Model ID', format: 'boolean' },
+ { key: 'voice_id', label: 'Voice ID', format: 'boolean' },
+ { key: 'supported_voices', label: 'Supported Voices', format: 'boolean' },
+ { key: 'stability', label: 'Stability', format: 'boolean' },
+ { key: 'speed', label: 'Speed', format: 'boolean' },
+ { key: 'similarity_boost', label: 'Similarity Boost', format: 'boolean' },
+ {
+ key: 'pronunciation_dictionary_locators',
+ label: 'Pronunciation Dictionary Locators',
+ format: 'boolean',
+ },
+ ],
+ },
+ {
+ key: 'conversation',
+ label: 'Conversation',
+ children: [
+ { key: 'text_only', label: 'Text Only', format: 'boolean' },
+ { key: 'max_duration_seconds', label: 'Max Duration Seconds', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'agent',
+ label: 'Agent',
+ children: [
+ { key: 'first_message', label: 'First Message', format: 'boolean' },
+ { key: 'language', label: 'Language', format: 'boolean' },
+ {
+ key: 'max_conversation_duration_message',
+ label: 'Max Conversation Duration Message',
+ format: 'boolean',
+ },
+ { key: 'prompt', label: 'Prompt' },
+ ],
+ },
+ ],
+ },
+ { key: 'custom_llm_extra_body', label: 'Custom Llm Extra Body', format: 'boolean' },
+ {
+ key: 'enable_conversation_initiation_client_data_from_webhook',
+ label: 'Enable Conversation Initiation Client Data From Webhook',
+ format: 'boolean',
+ },
+ {
+ key: 'enable_starting_workflow_node_id_from_client',
+ label: 'Enable Starting Workflow Node ID From Client',
+ format: 'boolean',
+ },
+ {
+ key: 'enable_procedure_ids_from_client',
+ label: 'Enable Procedure IDs From Client',
+ format: 'boolean',
+ },
+ ],
+ },
+ {
+ key: 'workspace_overrides',
+ label: 'Workspace Overrides',
+ children: [
+ {
+ key: 'conversation_initiation_client_data_webhook',
+ label: 'Conversation Initiation Client Data Webhook',
+ },
+ {
+ key: 'webhooks',
+ label: 'Webhooks',
+ children: [
+ { key: 'post_call_webhook_id', label: 'Post Call Webhook ID' },
+ { key: 'events', label: 'Events' },
+ { key: 'transcript_format', label: 'Transcript Format' },
+ { key: 'send_audio', label: 'Send Audio', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'cloud_storage_export',
+ label: 'Cloud Storage Export',
+ children: [
+ { key: 'destination_id', label: 'Destination ID' },
+ { key: 'events', label: 'Events' },
+ { key: 'transcript_format', label: 'Transcript Format' },
+ ],
+ },
+ ],
+ },
+ {
+ key: 'testing',
+ label: 'Testing',
+ children: [
+ { key: 'attached_tests', label: 'Attached Tests' },
+ { key: 'referenced_tests_ids', label: 'Referenced Tests IDs' },
+ ],
+ },
+ { key: 'archived', label: 'Archived', format: 'boolean' },
+ {
+ key: 'guardrails',
+ label: 'Guardrails',
+ children: [
+ { key: 'version', label: 'Version' },
+ {
+ key: 'focus',
+ label: 'Focus',
+ children: [
+ { key: 'is_enabled', label: 'Is Enabled', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'prompt_injection',
+ label: 'Prompt Injection',
+ children: [
+ { key: 'is_enabled', label: 'Is Enabled', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'synthetic_voice',
+ label: 'Synthetic Voice',
+ children: [
+ { key: 'is_enabled', label: 'Is Enabled', format: 'boolean' },
+ {
+ key: 'trigger_action',
+ label: 'Trigger Action',
+ children: [
+ { key: 'type', label: 'Type' },
+ ],
+ },
+ ],
+ },
+ {
+ key: 'content',
+ label: 'Content',
+ children: [
+ { key: 'execution_mode', label: 'Execution Mode' },
+ {
+ key: 'trigger_action',
+ label: 'Trigger Action',
+ children: [
+ { key: 'type', label: 'Type' },
+ ],
+ },
+ ],
+ },
+ { key: 'moderation', label: 'Moderation' },
+ { key: 'custom', label: 'Custom' },
+ ],
+ },
+ { key: 'summary_language', label: 'Summary Language' },
+ {
+ key: 'auto_translate_transcript_to_app_language',
+ label: 'Auto Translate Transcript To App Language',
+ },
+ {
+ key: 'auth',
+ label: 'Auth',
+ children: [
+ { key: 'enable_auth', label: 'Enable Auth', format: 'boolean' },
+ { key: 'allowlist', label: 'Allowlist' },
+ { key: 'require_origin_header', label: 'Require Origin Header', format: 'boolean' },
+ { key: 'shareable_token', label: 'Shareable Token' },
+ ],
+ },
+ {
+ key: 'call_limits',
+ label: 'Call Limits',
+ children: [
+ { key: 'agent_concurrency_limit', label: 'Agent Concurrency Limit', format: 'number' },
+ { key: 'daily_limit', label: 'Daily Limit', format: 'number' },
+ { key: 'bursting_enabled', label: 'Bursting Enabled', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'queueing_config',
+ label: 'Queueing Config',
+ children: [
+ { key: 'enabled', label: 'Enabled', format: 'boolean' },
+ { key: 'wait_timeout_seconds', label: 'Wait Timeout Seconds', format: 'number' },
+ { key: 'hold_audio', label: 'Hold Audio' },
+ ],
+ },
+ { key: 'ban', label: 'Ban' },
+ { key: 'smb_metadata', label: 'Smb Metadata' },
+ {
+ key: 'privacy',
+ label: 'Privacy',
+ children: [
+ { key: 'record_voice', label: 'Record Voice', format: 'boolean' },
+ { key: 'retention_days', label: 'Retention Days', format: 'number' },
+ { key: 'delete_transcript_and_pii', label: 'Delete Transcript And Pii', format: 'boolean' },
+ { key: 'delete_audio', label: 'Delete Audio', format: 'boolean' },
+ {
+ key: 'apply_to_existing_conversations',
+ label: 'Apply To Existing Conversations',
+ format: 'boolean',
+ },
+ { key: 'zero_retention_mode', label: 'Zero Retention Mode', format: 'boolean' },
+ { key: 'nested_history_redaction', label: 'Nested History Redaction', format: 'boolean' },
+ {
+ key: 'conversation_history_redaction',
+ label: 'Conversation History Redaction',
+ children: [
+ { key: 'enabled', label: 'Enabled', format: 'boolean' },
+ { key: 'entities', label: 'Entities' },
+ ],
+ },
+ {
+ key: 'user_memory',
+ label: 'User Memory',
+ children: [
+ { key: 'enabled', label: 'Enabled', format: 'boolean' },
+ { key: 'scale', label: 'Scale' },
+ ],
+ },
+ ],
+ },
+ { key: 'trust_context', label: 'Trust Context' },
+ { key: 'analysis_llm', label: 'Analysis Llm' },
+ { key: 'analysis_bedrock_llm', label: 'Analysis Bedrock Llm' },
+ { key: 'analysis_llm_billed', label: 'Analysis Llm Billed', format: 'boolean' },
+ {
+ key: 'topic_discovery',
+ label: 'Topic Discovery',
+ children: [
+ { key: 'enabled', label: 'Enabled', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'sentiment_analysis',
+ label: 'Sentiment Analysis',
+ children: [
+ { key: 'enabled', label: 'Enabled', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'simulation_library',
+ label: 'Simulation Library',
+ children: [
+ { key: 'enabled', label: 'Enabled', format: 'boolean' },
+ { key: 'test_ids', label: 'Test IDs' },
+ ],
+ },
+ { key: 'alerting', label: 'Alerting' },
+ { key: 'overview_dashboard_template_id', label: 'Overview Dashboard Template ID' },
+ {
+ key: 'safety',
+ label: 'Safety',
+ children: [
+ { key: 'is_blocked_ivc', label: 'Is Blocked Ivc', format: 'boolean' },
+ { key: 'is_blocked_non_ivc', label: 'Is Blocked Non Ivc', format: 'boolean' },
+ { key: 'ignore_safety_evaluation', label: 'Ignore Safety Evaluation', format: 'boolean' },
+ ],
+ },
+ ],
+ },
+ { key: 'phone_numbers', label: 'Phone Numbers' },
+ { key: 'whatsapp_accounts', label: 'Whatsapp Accounts' },
+ {
+ key: 'workflow',
+ label: 'Workflow',
+ children: [
+ { key: 'edges', label: 'Edges' },
+ {
+ key: 'nodes',
+ label: 'Nodes',
+ children: [
+ {
+ key: 'start_node',
+ label: 'Start Node',
+ children: [
+ { key: 'type', label: 'Type' },
+ {
+ key: 'position',
+ label: 'Position',
+ children: [
+ { key: 'x', label: 'X', format: 'number' },
+ { key: 'y', label: 'Y', format: 'number' },
+ ],
+ },
+ { key: 'edge_order', label: 'Edge Order' },
+ { key: 'parent_subgraph_id', label: 'Parent Subgraph ID' },
+ ],
+ },
+ ],
+ },
+ { key: 'subgraphs', label: 'Subgraphs' },
+ { key: 'prevent_subagent_loops', label: 'Prevent Subagent Loops', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'access_info',
+ label: 'Access Info',
+ children: [
+ { key: 'is_creator', label: 'Is Creator', format: 'boolean' },
+ { key: 'creator_name', label: 'Creator Name' },
+ { key: 'creator_email', label: 'Creator Email', format: 'email' },
+ { key: 'role', label: 'Role' },
+ { key: 'anonymous_access_level_override', label: 'Anonymous Access Level Override' },
+ { key: 'access_source', label: 'Access Source' },
+ ],
+ },
+ { key: 'access_permissions', label: 'Access Permissions' },
+ { key: 'tags', label: 'Tags' },
+ { key: 'version_id', label: 'Version ID' },
+ { key: 'branch_id', label: 'Branch ID' },
+ { key: 'main_branch_id', label: 'Main Branch ID' },
+ { key: 'procedures', label: 'Procedures' },
+ { key: 'trust_context', label: 'Trust Context' },
+ { key: 'default_hold_audio_url', label: 'Default Hold Audio URL', format: 'url' },
+ ],
+};
+
+export const elevenlabsGetAgentKnowledgeBaseSizeOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'number_of_pages', label: 'Number Of Pages', format: 'number' },
+ ],
+};
+
+export const elevenlabsGetAgentLinkOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'token', label: 'Token' },
+ ],
+};
+
+export const elevenlabsListAgentsOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'agents',
+ label: 'Agents',
+ labelKey: 'name',
+ listItems: [
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'name', label: 'Name' },
+ { key: 'voice_id', label: 'Voice ID' },
+ { key: 'tags', label: 'Tags' },
+ { key: 'created_at_unix_secs', label: 'Created At Unix Secs', format: 'number' },
+ {
+ key: 'access_info',
+ label: 'Access Info',
+ children: [
+ { key: 'is_creator', label: 'Is Creator', format: 'boolean' },
+ { key: 'creator_name', label: 'Creator Name' },
+ { key: 'creator_email', label: 'Creator Email', format: 'email' },
+ { key: 'role', label: 'Role' },
+ { key: 'anonymous_access_level_override', label: 'Anonymous Access Level Override' },
+ { key: 'access_source', label: 'Access Source' },
+ ],
+ },
+ { key: 'last_call_time_unix_secs', label: 'Last Call Time Unix Secs' },
+ { key: 'archived', label: 'Archived', format: 'boolean' },
+ { key: 'last_7_day_call_count', label: 'Last 7 Day Call Count', format: 'number' },
+ { key: 'trust_context', label: 'Trust Context' },
+ ],
+ },
+ { key: 'next_cursor', label: 'Next Cursor' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsCalculateAgentLlmUsageOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'llm_prices',
+ label: 'Llm Prices',
+ listItems: [
+ { key: 'llm', label: 'Llm' },
+ { key: 'price_per_minute', label: 'Price Per Minute', format: 'number' },
+ { key: 'price_per_message', label: 'Price Per Message', format: 'number' },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsGetAgentWidgetOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'agent_id', label: 'Agent ID' },
+ {
+ key: 'widget_config',
+ label: 'Widget Config',
+ children: [
+ { key: 'variant', label: 'Variant' },
+ { key: 'placement', label: 'Placement' },
+ { key: 'expandable', label: 'Expandable' },
+ {
+ key: 'avatar',
+ label: 'Avatar',
+ children: [
+ { key: 'type', label: 'Type' },
+ { key: 'color_1', label: 'Color 1' },
+ { key: 'color_2', label: 'Color 2' },
+ ],
+ },
+ { key: 'feedback_mode', label: 'Feedback Mode' },
+ {
+ key: 'end_feedback',
+ label: 'End Feedback',
+ children: [
+ { key: 'type', label: 'Type' },
+ ],
+ },
+ { key: 'bg_color', label: 'Bg Color' },
+ { key: 'text_color', label: 'Text Color' },
+ { key: 'btn_color', label: 'Btn Color' },
+ { key: 'btn_text_color', label: 'Btn Text Color' },
+ { key: 'border_color', label: 'Border Color' },
+ { key: 'focus_color', label: 'Focus Color' },
+ { key: 'border_radius', label: 'Border Radius' },
+ { key: 'btn_radius', label: 'Btn Radius' },
+ { key: 'action_text', label: 'Action Text' },
+ { key: 'start_call_text', label: 'Start Call Text' },
+ { key: 'end_call_text', label: 'End Call Text' },
+ { key: 'expand_text', label: 'Expand Text' },
+ { key: 'listening_text', label: 'Listening Text' },
+ { key: 'speaking_text', label: 'Speaking Text' },
+ { key: 'shareable_page_text', label: 'Shareable Page Text' },
+ { key: 'shareable_page_show_terms', label: 'Shareable Page Show Terms', format: 'boolean' },
+ { key: 'terms_text', label: 'Terms Text' },
+ { key: 'terms_html', label: 'Terms HTML' },
+ { key: 'terms_key', label: 'Terms Key' },
+ { key: 'show_avatar_when_collapsed', label: 'Show Avatar When Collapsed', format: 'boolean' },
+ { key: 'disable_banner', label: 'Disable Banner', format: 'boolean' },
+ { key: 'override_link', label: 'Override Link' },
+ { key: 'markdown_link_allowed_hosts', label: 'Markdown Link Allowed Hosts' },
+ { key: 'markdown_link_include_www', label: 'Markdown Link Include Www', format: 'boolean' },
+ { key: 'markdown_link_allow_http', label: 'Markdown Link Allow Http', format: 'boolean' },
+ { key: 'mic_muting_enabled', label: 'Mic Muting Enabled', format: 'boolean' },
+ { key: 'transcript_enabled', label: 'Transcript Enabled', format: 'boolean' },
+ { key: 'text_input_enabled', label: 'Text Input Enabled', format: 'boolean' },
+ {
+ key: 'conversation_mode_toggle_enabled',
+ label: 'Conversation Mode Toggle Enabled',
+ format: 'boolean',
+ },
+ { key: 'default_expanded', label: 'Default Expanded', format: 'boolean' },
+ { key: 'always_expanded', label: 'Always Expanded', format: 'boolean' },
+ { key: 'dismissible', label: 'Dismissible', format: 'boolean' },
+ { key: 'show_agent_status', label: 'Show Agent Status', format: 'boolean' },
+ { key: 'show_conversation_id', label: 'Show Conversation ID', format: 'boolean' },
+ { key: 'strip_audio_tags', label: 'Strip Audio Tags', format: 'boolean' },
+ { key: 'syntax_highlight_theme', label: 'Syntax Highlight Theme' },
+ {
+ key: 'text_contents',
+ label: 'Text Contents',
+ children: [
+ { key: 'main_label', label: 'Main Label' },
+ { key: 'start_call', label: 'Start Call' },
+ { key: 'start_chat', label: 'Start Chat' },
+ { key: 'new_call', label: 'New Call' },
+ { key: 'end_call', label: 'End Call' },
+ { key: 'mute_microphone', label: 'Mute Microphone' },
+ { key: 'change_language', label: 'Change Language' },
+ { key: 'collapse', label: 'Collapse' },
+ { key: 'expand', label: 'Expand' },
+ { key: 'copied', label: 'Copied' },
+ { key: 'accept_terms', label: 'Accept Terms' },
+ { key: 'dismiss_terms', label: 'Dismiss Terms' },
+ { key: 'listening_status', label: 'Listening Status' },
+ { key: 'speaking_status', label: 'Speaking Status' },
+ { key: 'connecting_status', label: 'Connecting Status' },
+ { key: 'chatting_status', label: 'Chatting Status' },
+ { key: 'queue_waiting_status', label: 'Queue Waiting Status' },
+ { key: 'queue_waiting_status_short', label: 'Queue Waiting Status Short' },
+ { key: 'input_label', label: 'Input Label' },
+ { key: 'input_placeholder', label: 'Input Placeholder' },
+ { key: 'input_placeholder_text_only', label: 'Input Placeholder Text Only' },
+ { key: 'input_placeholder_new_conversation', label: 'Input Placeholder New Conversation' },
+ { key: 'user_ended_conversation', label: 'User Ended Conversation' },
+ { key: 'agent_ended_conversation', label: 'Agent Ended Conversation' },
+ { key: 'conversation_id', label: 'Conversation ID' },
+ { key: 'error_occurred', label: 'Error Occurred' },
+ { key: 'queue_timed_out', label: 'Queue Timed Out' },
+ { key: 'copy_id', label: 'Copy ID' },
+ { key: 'initiate_feedback', label: 'Initiate Feedback' },
+ { key: 'request_follow_up_feedback', label: 'Request Follow Up Feedback' },
+ { key: 'thanks_for_feedback', label: 'Thanks For Feedback' },
+ { key: 'thanks_for_feedback_details', label: 'Thanks For Feedback Details' },
+ { key: 'follow_up_feedback_placeholder', label: 'Follow Up Feedback Placeholder' },
+ { key: 'submit', label: 'Submit' },
+ { key: 'go_back', label: 'Go Back' },
+ { key: 'send_message', label: 'Send Message' },
+ { key: 'text_mode', label: 'Text Mode' },
+ { key: 'voice_mode', label: 'Voice Mode' },
+ { key: 'switched_to_text_mode', label: 'Switched To Text Mode' },
+ { key: 'switched_to_voice_mode', label: 'Switched To Voice Mode' },
+ { key: 'copy', label: 'Copy' },
+ { key: 'download', label: 'Download' },
+ { key: 'wrap', label: 'Wrap' },
+ { key: 'agent_working', label: 'Agent Working' },
+ { key: 'agent_done', label: 'Agent Done' },
+ { key: 'agent_error', label: 'Agent Error' },
+ { key: 'attach_file', label: 'Attach File' },
+ { key: 'remove_file', label: 'Remove File' },
+ { key: 'file_upload_error', label: 'File Upload Error' },
+ { key: 'file_type_unsupported', label: 'File Type Unsupported' },
+ { key: 'file_too_large', label: 'File Too Large' },
+ { key: 'file_limit_reached', label: 'File Limit Reached' },
+ { key: 'typing_indicator', label: 'Typing Indicator' },
+ { key: 'rich_content_unavailable', label: 'Rich Content Unavailable' },
+ ],
+ },
+ {
+ key: 'styles',
+ label: 'Styles',
+ children: [
+ { key: 'base', label: 'Base' },
+ { key: 'base_hover', label: 'Base Hover' },
+ { key: 'base_active', label: 'Base Active' },
+ { key: 'base_border', label: 'Base Border' },
+ { key: 'base_subtle', label: 'Base Subtle' },
+ { key: 'base_primary', label: 'Base Primary' },
+ { key: 'base_error', label: 'Base Error' },
+ { key: 'accent', label: 'Accent' },
+ { key: 'accent_hover', label: 'Accent Hover' },
+ { key: 'accent_active', label: 'Accent Active' },
+ { key: 'accent_border', label: 'Accent Border' },
+ { key: 'accent_subtle', label: 'Accent Subtle' },
+ { key: 'accent_primary', label: 'Accent Primary' },
+ { key: 'overlay_padding', label: 'Overlay Padding' },
+ { key: 'button_radius', label: 'Button Radius' },
+ { key: 'input_radius', label: 'Input Radius' },
+ { key: 'bubble_radius', label: 'Bubble Radius' },
+ { key: 'sheet_radius', label: 'Sheet Radius' },
+ { key: 'compact_sheet_radius', label: 'Compact Sheet Radius' },
+ { key: 'dropdown_sheet_radius', label: 'Dropdown Sheet Radius' },
+ ],
+ },
+ { key: 'show_resize_button', label: 'Show Resize Button', format: 'boolean' },
+ { key: 'language', label: 'Language' },
+ { key: 'supported_language_overrides', label: 'Supported Language Overrides' },
+ { key: 'language_presets', label: 'Language Presets' },
+ { key: 'text_only', label: 'Text Only', format: 'boolean' },
+ { key: 'supports_text_only', label: 'Supports Text Only', format: 'boolean' },
+ { key: 'first_message', label: 'First Message' },
+ { key: 'use_rtc', label: 'Use Rtc' },
+ {
+ key: 'file_input_config',
+ label: 'File Input Config',
+ children: [
+ { key: 'enabled', label: 'Enabled', format: 'boolean' },
+ { key: 'max_files_in_memory', label: 'Max Files In Memory', format: 'number' },
+ { key: 'max_files_per_conversation', label: 'Max Files Per Conversation', format: 'number' },
+ ],
+ },
+ { key: 'first_message_rich_content', label: 'First Message Rich Content' },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsCreateAudioNativeProjectOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'project_id', label: 'Project ID' },
+ { key: 'converting', label: 'Converting', format: 'boolean' },
+ { key: 'html_snippet', label: 'HTML Snippet' },
+ ],
+};
+
+export const elevenlabsGetAudioNativeSettingsOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'enabled', label: 'Enabled', format: 'boolean' },
+ { key: 'snapshot_id', label: 'Snapshot ID' },
+ {
+ key: 'settings',
+ label: 'Settings',
+ children: [
+ { key: 'title', label: 'Title' },
+ { key: 'image', label: 'Image' },
+ { key: 'author', label: 'Author' },
+ { key: 'small', label: 'Small', format: 'boolean' },
+ { key: 'text_color', label: 'Text Color' },
+ { key: 'background_color', label: 'Background Color' },
+ { key: 'sessionization', label: 'Sessionization', format: 'number' },
+ { key: 'audio_path', label: 'Audio Path' },
+ { key: 'audio_url', label: 'Audio URL' },
+ { key: 'status', label: 'Status' },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsUpdateAudioNativeContentOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'project_id', label: 'Project ID' },
+ { key: 'converting', label: 'Converting', format: 'boolean' },
+ { key: 'publishing', label: 'Publishing', format: 'boolean' },
+ { key: 'html_snippet', label: 'HTML Snippet' },
+ ],
+};
+
+export const elevenlabsSetAgentAvatarOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'avatar_url', label: 'Avatar URL', format: 'image' },
+ ],
+};
+
+export const elevenlabsListBatchCallsOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'batch_calls', label: 'Batch Calls' },
+ { key: 'next_doc', label: 'Next Doc' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsListConversationsOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'conversations', label: 'Conversations' },
+ { key: 'next_cursor', label: 'Next Cursor' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsGetDefaultVoiceSettingsOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'stability', label: 'Stability', format: 'number' },
+ { key: 'use_speaker_boost', label: 'Use Speaker Boost', format: 'boolean' },
+ { key: 'similarity_boost', label: 'Similarity Boost', format: 'number' },
+ { key: 'style', label: 'Style', format: 'number' },
+ { key: 'speed', label: 'Speed', format: 'number' },
+ ],
+};
+
+export const elevenlabsCreateDubbingOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'dubbing_id', label: 'Dubbing ID' },
+ { key: 'expected_duration_sec', label: 'Expected Duration Sec', format: 'number' },
+ ],
+};
+
+export const elevenlabsDeleteDubbingOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'status', label: 'Status' },
+ ],
+};
+
+export const elevenlabsGetDubbedFileOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'file', label: 'File', format: 'url' },
+ { key: 'content_type', label: 'Content Type' },
+ ],
+};
+
+export const elevenlabsGetDubbingTranscriptOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'language', label: 'Language' },
+ {
+ key: 'utterances',
+ label: 'Utterances',
+ listItems: [
+ { key: 'text', label: 'Text' },
+ { key: 'speaker_id', label: 'Speaker ID' },
+ { key: 'start_s', label: 'Start S', format: 'number' },
+ { key: 'end_s', label: 'End S', format: 'number' },
+ {
+ key: 'words',
+ label: 'Words',
+ listItems: [
+ { key: 'text', label: 'Text' },
+ { key: 'word_type', label: 'Word Type' },
+ { key: 'start_s', label: 'Start S', format: 'number' },
+ { key: 'end_s', label: 'End S', format: 'number' },
+ {
+ key: 'characters',
+ label: 'Characters',
+ listItems: [
+ { key: 'text', label: 'Text' },
+ { key: 'start_s', label: 'Start S', format: 'number' },
+ { key: 'end_s', label: 'End S', format: 'number' },
+ ],
+ },
+ ],
+ },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsGetDubbingTranscriptFormattedOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'transcript_format', label: 'Transcript Format' },
+ { key: 'srt', label: 'Srt' },
+ ],
+};
+
+export const elevenlabsGetDubbingOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'dubbing_id', label: 'Dubbing ID' },
+ { key: 'name', label: 'Name' },
+ { key: 'status', label: 'Status' },
+ { key: 'source_language', label: 'Source Language' },
+ { key: 'target_languages', label: 'Target Languages' },
+ { key: 'editable', label: 'Editable', format: 'boolean' },
+ { key: 'created_at', label: 'Created At', format: 'datetime' },
+ {
+ key: 'media_metadata',
+ label: 'Media Metadata',
+ children: [
+ { key: 'content_type', label: 'Content Type' },
+ { key: 'duration', label: 'Duration', format: 'number' },
+ ],
+ },
+ { key: 'error', label: 'Error' },
+ { key: 'model', label: 'Model' },
+ ],
+};
+
+export const elevenlabsListDubbingsOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'dubs',
+ label: 'Dubs',
+ labelKey: 'name',
+ listItems: [
+ { key: 'dubbing_id', label: 'Dubbing ID' },
+ { key: 'name', label: 'Name' },
+ { key: 'status', label: 'Status' },
+ { key: 'source_language', label: 'Source Language' },
+ { key: 'target_languages', label: 'Target Languages' },
+ { key: 'editable', label: 'Editable', format: 'boolean' },
+ { key: 'created_at', label: 'Created At', format: 'datetime' },
+ { key: 'media_metadata', label: 'Media Metadata' },
+ { key: 'error', label: 'Error' },
+ { key: 'model', label: 'Model' },
+ ],
+ },
+ { key: 'next_cursor', label: 'Next Cursor' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsListHistoryItemsOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'history',
+ label: 'History',
+ listItems: [
+ { key: 'history_item_id', label: 'History Item ID' },
+ { key: 'request_id', label: 'Request ID' },
+ { key: 'voice_id', label: 'Voice ID' },
+ { key: 'model_id', label: 'Model ID' },
+ { key: 'voice_name', label: 'Voice Name' },
+ { key: 'voice_category', label: 'Voice Category' },
+ { key: 'text', label: 'Text' },
+ { key: 'date_unix', label: 'Date Unix', format: 'number' },
+ { key: 'character_count_change_from', label: 'Character Count Change From', format: 'number' },
+ { key: 'character_count_change_to', label: 'Character Count Change To', format: 'number' },
+ { key: 'content_type', label: 'Content Type' },
+ { key: 'state', label: 'State' },
+ {
+ key: 'settings',
+ label: 'Settings',
+ children: [
+ { key: 'similarity_boost', label: 'Similarity Boost', format: 'number' },
+ { key: 'stability', label: 'Stability', format: 'number' },
+ { key: 'speed', label: 'Speed', format: 'number' },
+ { key: 'use_speaker_boost', label: 'Use Speaker Boost', format: 'boolean' },
+ { key: 'style', label: 'Style', format: 'number' },
+ ],
+ },
+ { key: 'feedback', label: 'Feedback' },
+ { key: 'share_link_id', label: 'Share Link ID' },
+ { key: 'source', label: 'Source' },
+ { key: 'alignments', label: 'Alignments' },
+ { key: 'dialogue', label: 'Dialogue' },
+ { key: 'output_format', label: 'Output Format' },
+ { key: 'avatar_context', label: 'Avatar Context' },
+ ],
+ },
+ { key: 'last_history_item_id', label: 'Last History Item ID' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'scanned_until', label: 'Scanned Until' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsGetHistoryItemOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'history_item_id', label: 'History Item ID' },
+ { key: 'request_id', label: 'Request ID' },
+ { key: 'voice_id', label: 'Voice ID' },
+ { key: 'model_id', label: 'Model ID' },
+ { key: 'voice_name', label: 'Voice Name' },
+ { key: 'voice_category', label: 'Voice Category' },
+ { key: 'text', label: 'Text' },
+ { key: 'date_unix', label: 'Date Unix', format: 'number' },
+ { key: 'character_count_change_from', label: 'Character Count Change From', format: 'number' },
+ { key: 'character_count_change_to', label: 'Character Count Change To', format: 'number' },
+ { key: 'content_type', label: 'Content Type' },
+ { key: 'state', label: 'State' },
+ {
+ key: 'settings',
+ label: 'Settings',
+ children: [
+ { key: 'style', label: 'Style', format: 'number' },
+ { key: 'use_speaker_boost', label: 'Use Speaker Boost', format: 'boolean' },
+ { key: 'stability', label: 'Stability', format: 'number' },
+ { key: 'speed', label: 'Speed', format: 'number' },
+ { key: 'similarity_boost', label: 'Similarity Boost', format: 'number' },
+ ],
+ },
+ { key: 'feedback', label: 'Feedback' },
+ { key: 'share_link_id', label: 'Share Link ID' },
+ { key: 'source', label: 'Source' },
+ {
+ key: 'alignments',
+ label: 'Alignments',
+ children: [
+ {
+ key: 'alignment',
+ label: 'Alignment',
+ children: [
+ { key: 'characters', label: 'Characters' },
+ { key: 'character_start_times_seconds', label: 'Character Start Times Seconds' },
+ { key: 'character_end_times_seconds', label: 'Character End Times Seconds' },
+ ],
+ },
+ {
+ key: 'normalized_alignment',
+ label: 'Normalized Alignment',
+ children: [
+ { key: 'characters', label: 'Characters' },
+ { key: 'character_start_times_seconds', label: 'Character Start Times Seconds' },
+ { key: 'character_end_times_seconds', label: 'Character End Times Seconds' },
+ ],
+ },
+ ],
+ },
+ { key: 'dialogue', label: 'Dialogue' },
+ { key: 'output_format', label: 'Output Format' },
+ { key: 'avatar_context', label: 'Avatar Context' },
+ ],
+};
+
+export const elevenlabsGetTestInvocationOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'branch_id', label: 'Branch ID' },
+ { key: 'version_id', label: 'Version ID' },
+ { key: 'ran_against_draft', label: 'Ran Against Draft', format: 'boolean' },
+ { key: 'created_at', label: 'Created At', format: 'number' },
+ { key: 'folder_id', label: 'Folder ID' },
+ { key: 'repeat_count', label: 'Repeat Count', format: 'number' },
+ { key: 'bucketing_status', label: 'Bucketing Status' },
+ { key: 'result_groups', label: 'Result Groups' },
+ {
+ key: 'test_runs',
+ label: 'Test Runs',
+ listItems: [
+ { key: 'test_run_id', label: 'Test Run ID' },
+ {
+ key: 'test_info',
+ label: 'Test Info',
+ children: [
+ { key: 'from_conversation_metadata', label: 'From Conversation Metadata' },
+ { key: 'dynamic_variables', label: 'Dynamic Variables' },
+ {
+ key: 'chat_history',
+ label: 'Chat History',
+ listItems: [
+ { key: 'role', label: 'Role' },
+ { key: 'agent_metadata', label: 'Agent Metadata' },
+ { key: 'message', label: 'Message' },
+ { key: 'multivoice_message', label: 'Multivoice Message' },
+ { key: 'tool_calls', label: 'Tool Calls' },
+ { key: 'tool_results', label: 'Tool Results' },
+ { key: 'feedback', label: 'Feedback' },
+ { key: 'llm_override', label: 'Llm Override' },
+ { key: 'producing_llm', label: 'Producing Llm' },
+ { key: 'time_in_call_secs', label: 'Time In Call Secs', format: 'number' },
+ { key: 'conversation_turn_metrics', label: 'Conversation Turn Metrics' },
+ { key: 'rag_retrieval_info', label: 'Rag Retrieval Info' },
+ { key: 'llm_usage', label: 'Llm Usage' },
+ { key: 'interrupted', label: 'Interrupted', format: 'boolean' },
+ { key: 'ignored_as_backchannel', label: 'Ignored As Backchannel', format: 'boolean' },
+ { key: 'original_message', label: 'Original Message' },
+ { key: 'reasoning', label: 'Reasoning' },
+ { key: 'source_medium', label: 'Source Medium' },
+ { key: 'source_event_id', label: 'Source Event ID' },
+ { key: 'used_static_kb_document_ids', label: 'Used Static Kb Document IDs' },
+ { key: 'analysis', label: 'Analysis' },
+ { key: 'user_identifier', label: 'User Identifier' },
+ { key: 'id', label: 'ID' },
+ { key: 'compaction', label: 'Compaction' },
+ { key: 'triggered_guardrails', label: 'Triggered Guardrails' },
+ ],
+ },
+ { key: 'conversation_initiation_source', label: 'Conversation Initiation Source' },
+ { key: 'environment', label: 'Environment' },
+ { key: 'type', label: 'Type' },
+ { key: 'success_condition', label: 'Success Condition' },
+ {
+ key: 'success_examples',
+ label: 'Success Examples',
+ listItems: [
+ { key: 'response', label: 'Response' },
+ { key: 'type', label: 'Type' },
+ ],
+ },
+ {
+ key: 'failure_examples',
+ label: 'Failure Examples',
+ listItems: [
+ { key: 'response', label: 'Response' },
+ { key: 'type', label: 'Type' },
+ ],
+ },
+ ],
+ },
+ { key: 'test_invocation_id', label: 'Test Invocation ID' },
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'branch_id', label: 'Branch ID' },
+ { key: 'version_id', label: 'Version ID' },
+ { key: 'ran_against_draft', label: 'Ran Against Draft', format: 'boolean' },
+ { key: 'workflow_node_id', label: 'Workflow Node ID' },
+ { key: 'status', label: 'Status' },
+ {
+ key: 'agent_responses',
+ label: 'Agent Responses',
+ listItems: [
+ { key: 'role', label: 'Role' },
+ { key: 'agent_metadata', label: 'Agent Metadata' },
+ { key: 'message', label: 'Message' },
+ { key: 'multivoice_message', label: 'Multivoice Message' },
+ { key: 'tool_calls', label: 'Tool Calls' },
+ { key: 'tool_results', label: 'Tool Results' },
+ { key: 'feedback', label: 'Feedback' },
+ { key: 'llm_override', label: 'Llm Override' },
+ { key: 'producing_llm', label: 'Producing Llm' },
+ { key: 'time_in_call_secs', label: 'Time In Call Secs', format: 'number' },
+ { key: 'conversation_turn_metrics', label: 'Conversation Turn Metrics' },
+ { key: 'rag_retrieval_info', label: 'Rag Retrieval Info' },
+ { key: 'llm_usage', label: 'Llm Usage' },
+ { key: 'interrupted', label: 'Interrupted', format: 'boolean' },
+ { key: 'ignored_as_backchannel', label: 'Ignored As Backchannel', format: 'boolean' },
+ { key: 'original_message', label: 'Original Message' },
+ { key: 'reasoning', label: 'Reasoning' },
+ { key: 'source_medium', label: 'Source Medium' },
+ { key: 'source_event_id', label: 'Source Event ID', format: 'number' },
+ { key: 'used_static_kb_document_ids', label: 'Used Static Kb Document IDs' },
+ { key: 'analysis', label: 'Analysis' },
+ { key: 'user_identifier', label: 'User Identifier' },
+ { key: 'id', label: 'ID' },
+ { key: 'compaction', label: 'Compaction' },
+ { key: 'triggered_guardrails', label: 'Triggered Guardrails' },
+ ],
+ },
+ { key: 'test_id', label: 'Test ID' },
+ { key: 'test_name', label: 'Test Name' },
+ {
+ key: 'condition_result',
+ label: 'Condition Result',
+ children: [
+ { key: 'result', label: 'Result' },
+ {
+ key: 'rationale',
+ label: 'Rationale',
+ children: [
+ { key: 'messages', label: 'Messages' },
+ { key: 'summary', label: 'Summary' },
+ ],
+ },
+ ],
+ },
+ { key: 'last_updated_at_unix', label: 'Last Updated At Unix', format: 'number' },
+ {
+ key: 'metadata',
+ label: 'Metadata',
+ children: [
+ { key: 'workspace_id', label: 'Workspace ID' },
+ { key: 'test_name', label: 'Test Name' },
+ { key: 'ran_by_user_email', label: 'Ran By User Email', format: 'email' },
+ { key: 'test_type', label: 'Test Type' },
+ ],
+ },
+ { key: 'root_folder_id', label: 'Root Folder ID' },
+ { key: 'root_folder_name', label: 'Root Folder Name' },
+ { key: 'environment', label: 'Environment' },
+ { key: 'credits_used', label: 'Credits Used', format: 'number' },
+ {
+ key: 'charging',
+ label: 'Charging',
+ children: [
+ { key: 'dev_discount', label: 'Dev Discount', format: 'boolean' },
+ { key: 'is_burst', label: 'Is Burst', format: 'boolean' },
+ { key: 'tier', label: 'Tier' },
+ {
+ key: 'llm_usage',
+ label: 'Llm Usage',
+ children: [
+ {
+ key: 'irreversible_generation',
+ label: 'Irreversible Generation',
+ children: [
+ { key: 'model_usage', label: 'Model Usage' },
+ { key: 'detailed_model_usage', label: 'Detailed Model Usage' },
+ ],
+ },
+ {
+ key: 'initiated_generation',
+ label: 'Initiated Generation',
+ children: [
+ { key: 'model_usage', label: 'Model Usage' },
+ { key: 'detailed_model_usage', label: 'Detailed Model Usage' },
+ ],
+ },
+ ],
+ },
+ { key: 'llm_price', label: 'Llm Price', format: 'number' },
+ { key: 'llm_charge', label: 'Llm Charge', format: 'number' },
+ { key: 'call_charge', label: 'Call Charge', format: 'number' },
+ { key: 'platform_charge', label: 'Platform Charge', format: 'number' },
+ {
+ key: 'platform_usage',
+ label: 'Platform Usage',
+ children: [
+ {
+ key: 'category_usage',
+ label: 'Category Usage',
+ children: [
+ { key: 'text_message', label: 'Text Message' },
+ ],
+ },
+ ],
+ },
+ { key: 'platform_price', label: 'Platform Price', format: 'number' },
+ { key: 'free_minutes_consumed', label: 'Free Minutes Consumed', format: 'number' },
+ { key: 'free_llm_dollars_consumed', label: 'Free Llm Dollars Consumed', format: 'number' },
+ { key: 'tts_usage', label: 'Tts Usage' },
+ { key: 'asr_usage', label: 'Asr Usage' },
+ { key: 'analysis', label: 'Analysis' },
+ ],
+ },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsListTestInvocationsOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'meta',
+ label: 'Meta',
+ children: [
+ { key: 'total', label: 'Total' },
+ { key: 'page', label: 'Page' },
+ { key: 'page_size', label: 'Page Size' },
+ ],
+ },
+ {
+ key: 'results',
+ label: 'Results',
+ labelKey: 'title',
+ listItems: [
+ { key: 'id', label: 'ID' },
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'branch_id', label: 'Branch ID' },
+ { key: 'version_id', label: 'Version ID' },
+ { key: 'ran_against_draft', label: 'Ran Against Draft', format: 'boolean' },
+ { key: 'runs_diverged_from_version', label: 'Runs Diverged From Version', format: 'boolean' },
+ { key: 'created_at_unix_secs', label: 'Created At Unix Secs', format: 'number' },
+ { key: 'test_run_count', label: 'Test Run Count', format: 'number' },
+ { key: 'passed_count', label: 'Passed Count', format: 'number' },
+ { key: 'failed_count', label: 'Failed Count', format: 'number' },
+ { key: 'pending_count', label: 'Pending Count', format: 'number' },
+ { key: 'title', label: 'Title' },
+ {
+ key: 'access_info',
+ label: 'Access Info',
+ children: [
+ { key: 'is_creator', label: 'Is Creator', format: 'boolean' },
+ { key: 'creator_name', label: 'Creator Name' },
+ { key: 'creator_email', label: 'Creator Email', format: 'email' },
+ { key: 'role', label: 'Role' },
+ { key: 'anonymous_access_level_override', label: 'Anonymous Access Level Override' },
+ { key: 'access_source', label: 'Access Source' },
+ ],
+ },
+ { key: 'repeat_count', label: 'Repeat Count', format: 'number' },
+ { key: 'credits_used', label: 'Credits Used', format: 'number' },
+ { key: 'total_price', label: 'Total Price', format: 'number' },
+ ],
+ },
+ { key: 'next_cursor', label: 'Next Cursor' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsGetKbDocumentContentOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'result', label: 'Result', value: '' },
+ ],
+};
+
+export const elevenlabsTextToSpeechOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'audio', label: 'Audio File', value: '', format: 'url' },
+ ],
+};
+
+export const elevenlabsDeleteKbDocumentOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'success', label: 'Success', format: 'boolean' },
+ ],
+};
+
+export const elevenlabsListKbDependentAgentsOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'agents', label: 'Agents' },
+ { key: 'branches', label: 'Branches' },
+ { key: 'next_cursor', label: 'Next Cursor' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsCreateKbFileDocumentOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ { key: 'name', label: 'Name' },
+ { key: 'folder_path', label: 'Folder Path' },
+ ],
+};
+
+export const elevenlabsGetKbDocumentOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ { key: 'name', label: 'Name' },
+ {
+ key: 'metadata',
+ label: 'Metadata',
+ children: [
+ { key: 'created_at_unix_secs', label: 'Created At Unix Secs', format: 'number' },
+ { key: 'last_updated_at_unix_secs', label: 'Last Updated At Unix Secs', format: 'number' },
+ { key: 'size_bytes', label: 'Size Bytes', format: 'number' },
+ ],
+ },
+ { key: 'supported_usages', label: 'Supported Usages' },
+ {
+ key: 'access_info',
+ label: 'Access Info',
+ children: [
+ { key: 'is_creator', label: 'Is Creator', format: 'boolean' },
+ { key: 'creator_name', label: 'Creator Name' },
+ { key: 'creator_email', label: 'Creator Email', format: 'email' },
+ { key: 'role', label: 'Role' },
+ { key: 'anonymous_access_level_override', label: 'Anonymous Access Level Override' },
+ { key: 'access_source', label: 'Access Source' },
+ ],
+ },
+ { key: 'folder_parent_id', label: 'Folder Parent ID' },
+ { key: 'chunking_override', label: 'Chunking Override' },
+ { key: 'folder_path', label: 'Folder Path' },
+ { key: 'type', label: 'Type' },
+ { key: 'extracted_inner_html', label: 'Extracted Inner HTML' },
+ { key: 'content_format', label: 'Content Format' },
+ ],
+};
+
+export const elevenlabsListKbDocumentsOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'documents',
+ label: 'Documents',
+ labelKey: 'name',
+ listItems: [
+ { key: 'id', label: 'ID' },
+ { key: 'name', label: 'Name' },
+ {
+ key: 'metadata',
+ label: 'Metadata',
+ children: [
+ { key: 'created_at_unix_secs', label: 'Created At Unix Secs', format: 'number' },
+ { key: 'last_updated_at_unix_secs', label: 'Last Updated At Unix Secs', format: 'number' },
+ { key: 'size_bytes', label: 'Size Bytes', format: 'number' },
+ ],
+ },
+ { key: 'supported_usages', label: 'Supported Usages' },
+ {
+ key: 'access_info',
+ label: 'Access Info',
+ children: [
+ { key: 'is_creator', label: 'Is Creator', format: 'boolean' },
+ { key: 'creator_name', label: 'Creator Name' },
+ { key: 'creator_email', label: 'Creator Email', format: 'email' },
+ { key: 'role', label: 'Role' },
+ { key: 'anonymous_access_level_override', label: 'Anonymous Access Level Override' },
+ { key: 'access_source', label: 'Access Source' },
+ ],
+ },
+ { key: 'folder_parent_id', label: 'Folder Parent ID' },
+ { key: 'chunking_override', label: 'Chunking Override' },
+ { key: 'folder_path', label: 'Folder Path' },
+ { key: 'dependent_agents', label: 'Dependent Agents' },
+ { key: 'type', label: 'Type' },
+ { key: 'children_count', label: 'Children Count', format: 'number' },
+ { key: 'document_count', label: 'Document Count', format: 'number' },
+ { key: 'auto_sync_info', label: 'Auto Sync Info' },
+ { key: 'external_sync_info', label: 'External Sync Info' },
+ { key: 'is_frozen', label: 'Is Frozen', format: 'boolean' },
+ ],
+ },
+ { key: 'next_cursor', label: 'Next Cursor' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsCreateKbRagIndexOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ { key: 'model', label: 'Model' },
+ { key: 'status', label: 'Status' },
+ { key: 'progress_percentage', label: 'Progress Percentage', format: 'number' },
+ {
+ key: 'document_model_index_usage',
+ label: 'Document Model Index Usage',
+ children: [
+ { key: 'used_bytes', label: 'Used Bytes', format: 'number' },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsGetKbDocumentRagIndexesOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'indexes',
+ label: 'Indexes',
+ labelKey: 'id',
+ listItems: [
+ { key: 'id', label: 'ID' },
+ { key: 'model', label: 'Model' },
+ { key: 'status', label: 'Status' },
+ { key: 'progress_percentage', label: 'Progress Percentage', format: 'number' },
+ {
+ key: 'document_model_index_usage',
+ label: 'Document Model Index Usage',
+ children: [
+ { key: 'used_bytes', label: 'Used Bytes', format: 'number' },
+ ],
+ },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsGetKbRagIndexOverviewOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'total_used_bytes', label: 'Total Used Bytes', format: 'number' },
+ { key: 'total_max_bytes', label: 'Total Max Bytes', format: 'number' },
+ { key: 'models', label: 'Models' },
+ ],
+};
+
+export const elevenlabsGetKbDocumentSourceUrlOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'signed_url', label: 'Signed URL', format: 'url' },
+ ],
+};
+
+export const elevenlabsGetKbSummariesOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'summaries',
+ label: 'Summaries By Document ID',
+ value: '',
+ dynamicKey: true,
+ labelKey: 'data.name',
+ children: [
+ { key: 'status', label: 'Status' },
+ {
+ key: 'data',
+ label: 'Data',
+ children: [
+ { key: 'id', label: 'ID' },
+ { key: 'name', label: 'Name' },
+ {
+ key: 'metadata',
+ label: 'Metadata',
+ children: [
+ { key: 'created_at_unix_secs', label: 'Created At Unix Secs', format: 'number' },
+ { key: 'last_updated_at_unix_secs', label: 'Last Updated At Unix Secs', format: 'number' },
+ { key: 'size_bytes', label: 'Size Bytes', format: 'number' },
+ ],
+ },
+ { key: 'supported_usages', label: 'Supported Usages' },
+ {
+ key: 'access_info',
+ label: 'Access Info',
+ children: [
+ { key: 'is_creator', label: 'Is Creator', format: 'boolean' },
+ { key: 'creator_name', label: 'Creator Name' },
+ { key: 'creator_email', label: 'Creator Email', format: 'email' },
+ { key: 'role', label: 'Role' },
+ { key: 'anonymous_access_level_override', label: 'Anonymous Access Level Override' },
+ { key: 'access_source', label: 'Access Source' },
+ ],
+ },
+ { key: 'folder_parent_id', label: 'Folder Parent ID' },
+ { key: 'chunking_override', label: 'Chunking Override' },
+ { key: 'folder_path', label: 'Folder Path' },
+ { key: 'dependent_agents', label: 'Dependent Agents' },
+ { key: 'type', label: 'Type' },
+ ],
+ },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsGetLiveConversationCountOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsListModelsOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'items',
+ label: 'Items',
+ labelKey: 'name',
+ listItems: [
+ { key: 'model_id', label: 'Model ID' },
+ { key: 'name', label: 'Name' },
+ { key: 'can_be_finetuned', label: 'Can Be Finetuned', format: 'boolean' },
+ { key: 'can_do_text_to_speech', label: 'Can Do Text To Speech', format: 'boolean' },
+ { key: 'can_do_voice_conversion', label: 'Can Do Voice Conversion', format: 'boolean' },
+ { key: 'can_use_style', label: 'Can Use Style', format: 'boolean' },
+ { key: 'can_use_speaker_boost', label: 'Can Use Speaker Boost', format: 'boolean' },
+ { key: 'serves_pro_voices', label: 'Serves Pro Voices', format: 'boolean' },
+ { key: 'token_cost_factor', label: 'Token Cost Factor', format: 'number' },
+ { key: 'description', label: 'Description' },
+ { key: 'requires_alpha_access', label: 'Requires Alpha Access', format: 'boolean' },
+ {
+ key: 'max_characters_request_free_user',
+ label: 'Max Characters Request Free User',
+ format: 'number',
+ },
+ {
+ key: 'max_characters_request_subscribed_user',
+ label: 'Max Characters Request Subscribed User',
+ format: 'number',
+ },
+ { key: 'maximum_text_length_per_request', label: 'Maximum Text Length Per Request', format: 'number' },
+ {
+ key: 'languages',
+ label: 'Languages',
+ labelKey: 'name',
+ listItems: [
+ { key: 'language_id', label: 'Language ID' },
+ { key: 'name', label: 'Name' },
+ ],
+ },
+ {
+ key: 'model_rates',
+ label: 'Model Rates',
+ children: [
+ { key: 'character_cost_multiplier', label: 'Character Cost Multiplier', format: 'number' },
+ { key: 'cost_discount_multiplier', label: 'Cost Discount Multiplier', format: 'number' },
+ ],
+ },
+ { key: 'concurrency_group', label: 'Concurrency Group' },
+ ],
+ },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsAddPronunciationRulesOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ { key: 'version_id', label: 'Version ID' },
+ { key: 'version_rules_num', label: 'Version Rules Num', format: 'number' },
+ ],
+};
+
+export const elevenlabsUpdatePronunciationDictionaryOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ { key: 'latest_version_id', label: 'Latest Version ID' },
+ { key: 'latest_version_rules_num', label: 'Latest Version Rules Num', format: 'number' },
+ { key: 'name', label: 'Name' },
+ { key: 'permission_on_resource', label: 'Permission On Resource' },
+ { key: 'created_by', label: 'Created By' },
+ { key: 'creation_time_unix', label: 'Creation Time Unix', format: 'number' },
+ { key: 'archived_time_unix', label: 'Archived Time Unix', format: 'number' },
+ { key: 'description', label: 'Description' },
+ ],
+};
+
+export const elevenlabsCreatePronunciationDictionaryFromRulesOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ { key: 'name', label: 'Name' },
+ { key: 'created_by', label: 'Created By' },
+ { key: 'creation_time_unix', label: 'Creation Time Unix', format: 'number' },
+ { key: 'version_id', label: 'Version ID' },
+ { key: 'version_rules_num', label: 'Version Rules Num', format: 'number' },
+ { key: 'description', label: 'Description' },
+ { key: 'permission_on_resource', label: 'Permission On Resource' },
+ ],
+};
+
+export const elevenlabsGetPronunciationDictionaryOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ { key: 'latest_version_id', label: 'Latest Version ID' },
+ { key: 'latest_version_rules_num', label: 'Latest Version Rules Num', format: 'number' },
+ { key: 'name', label: 'Name' },
+ { key: 'permission_on_resource', label: 'Permission On Resource' },
+ { key: 'created_by', label: 'Created By' },
+ { key: 'creation_time_unix', label: 'Creation Time Unix', format: 'number' },
+ { key: 'archived_time_unix', label: 'Archived Time Unix' },
+ { key: 'description', label: 'Description' },
+ {
+ key: 'rules',
+ label: 'Rules',
+ listItems: [
+ { key: 'string_to_replace', label: 'String To Replace' },
+ { key: 'case_sensitive', label: 'Case Sensitive', format: 'boolean' },
+ { key: 'word_boundaries', label: 'Word Boundaries', format: 'boolean' },
+ { key: 'type', label: 'Type' },
+ { key: 'alias', label: 'Alias' },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsListPronunciationDictionariesOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'pronunciation_dictionaries',
+ label: 'Pronunciation Dictionaries',
+ labelKey: 'name',
+ listItems: [
+ { key: 'id', label: 'ID' },
+ { key: 'latest_version_id', label: 'Latest Version ID' },
+ { key: 'latest_version_rules_num', label: 'Latest Version Rules Num', format: 'number' },
+ { key: 'name', label: 'Name' },
+ { key: 'permission_on_resource', label: 'Permission On Resource' },
+ { key: 'created_by', label: 'Created By' },
+ { key: 'creation_time_unix', label: 'Creation Time Unix', format: 'number' },
+ { key: 'archived_time_unix', label: 'Archived Time Unix' },
+ { key: 'description', label: 'Description' },
+ ],
+ },
+ { key: 'next_cursor', label: 'Next Cursor' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsListPhoneNumbersOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'items', label: 'Items' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsCreateSecretOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'type', label: 'Type' },
+ { key: 'secret_id', label: 'Secret ID' },
+ { key: 'name', label: 'Name' },
+ ],
+};
+
+export const elevenlabsListSecretsOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'secrets',
+ label: 'Secrets',
+ labelKey: 'name',
+ listItems: [
+ { key: 'type', label: 'Type' },
+ { key: 'secret_id', label: 'Secret ID' },
+ { key: 'name', label: 'Name' },
+ {
+ key: 'used_by',
+ label: 'Used By',
+ children: [
+ { key: 'tools', label: 'Tools' },
+ { key: 'tools_has_more', label: 'Tools Has More', format: 'boolean' },
+ { key: 'agents', label: 'Agents' },
+ { key: 'agents_has_more', label: 'Agents Has More', format: 'boolean' },
+ { key: 'phone_numbers', label: 'Phone Numbers' },
+ { key: 'phone_numbers_has_more', label: 'Phone Numbers Has More', format: 'boolean' },
+ { key: 'mcp_servers', label: 'Mcp Servers' },
+ { key: 'others', label: 'Others' },
+ ],
+ },
+ ],
+ },
+ { key: 'next_cursor', label: 'Next Cursor' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsListSharedVoicesOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'voices',
+ label: 'Voices',
+ labelKey: 'name',
+ listItems: [
+ { key: 'public_owner_id', label: 'Public Owner ID' },
+ { key: 'voice_id', label: 'Voice ID' },
+ { key: 'date_unix', label: 'Date Unix', format: 'number' },
+ { key: 'name', label: 'Name' },
+ { key: 'accent', label: 'Accent' },
+ { key: 'gender', label: 'Gender' },
+ { key: 'age', label: 'Age' },
+ { key: 'descriptive', label: 'Descriptive' },
+ { key: 'use_case', label: 'Use Case' },
+ { key: 'category', label: 'Category' },
+ { key: 'language', label: 'Language' },
+ { key: 'locale', label: 'Locale' },
+ { key: 'description', label: 'Description' },
+ { key: 'preview_url', label: 'Preview URL', format: 'url' },
+ { key: 'usage_character_count_1y', label: 'Usage Character Count 1y', format: 'number' },
+ { key: 'usage_character_count_7d', label: 'Usage Character Count 7d', format: 'number' },
+ {
+ key: 'play_api_usage_character_count_1y',
+ label: 'Play API Usage Character Count 1y',
+ format: 'number',
+ },
+ { key: 'cloned_by_count', label: 'Cloned By Count', format: 'number' },
+ { key: 'rate', label: 'Rate', format: 'number' },
+ { key: 'fiat_rate', label: 'Fiat Rate' },
+ { key: 'free_users_allowed', label: 'Free Users Allowed', format: 'boolean' },
+ { key: 'live_moderation_enabled', label: 'Live Moderation Enabled', format: 'boolean' },
+ { key: 'featured', label: 'Featured', format: 'boolean' },
+ {
+ key: 'verified_languages',
+ label: 'Verified Languages',
+ listItems: [
+ { key: 'language', label: 'Language' },
+ { key: 'model_id', label: 'Model ID' },
+ { key: 'accent', label: 'Accent' },
+ { key: 'locale', label: 'Locale' },
+ { key: 'preview_url', label: 'Preview URL', format: 'url' },
+ ],
+ },
+ { key: 'notice_period', label: 'Notice Period', format: 'number' },
+ { key: 'instagram_username', label: 'Instagram Username' },
+ { key: 'twitter_username', label: 'Twitter Username' },
+ { key: 'youtube_username', label: 'Youtube Username' },
+ { key: 'tiktok_username', label: 'Tiktok Username' },
+ { key: 'image_url', label: 'Image URL' },
+ { key: 'is_added_by_user', label: 'Is Added By User', format: 'boolean' },
+ { key: 'is_bookmarked', label: 'Is Bookmarked' },
+ ],
+ },
+ { key: 'count', label: 'Count', format: 'number' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'total_count', label: 'Total Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsGetConversationSignedUrlOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'signed_url', label: 'Signed URL' },
+ ],
+};
+
+export const elevenlabsFindSimilarVoicesOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'voices',
+ label: 'Voices',
+ labelKey: 'name',
+ listItems: [
+ { key: 'public_owner_id', label: 'Public Owner ID' },
+ { key: 'voice_id', label: 'Voice ID' },
+ { key: 'date_unix', label: 'Date Unix', format: 'number' },
+ { key: 'name', label: 'Name' },
+ { key: 'accent', label: 'Accent' },
+ { key: 'gender', label: 'Gender' },
+ { key: 'age', label: 'Age' },
+ { key: 'descriptive', label: 'Descriptive' },
+ { key: 'use_case', label: 'Use Case' },
+ { key: 'category', label: 'Category' },
+ { key: 'language', label: 'Language' },
+ { key: 'locale', label: 'Locale' },
+ { key: 'description', label: 'Description' },
+ { key: 'preview_url', label: 'Preview URL', format: 'url' },
+ { key: 'usage_character_count_1y', label: 'Usage Character Count 1y', format: 'number' },
+ { key: 'usage_character_count_7d', label: 'Usage Character Count 7d', format: 'number' },
+ {
+ key: 'play_api_usage_character_count_1y',
+ label: 'Play API Usage Character Count 1y',
+ format: 'number',
+ },
+ { key: 'cloned_by_count', label: 'Cloned By Count', format: 'number' },
+ { key: 'rate', label: 'Rate', format: 'number' },
+ { key: 'fiat_rate', label: 'Fiat Rate' },
+ { key: 'free_users_allowed', label: 'Free Users Allowed', format: 'boolean' },
+ { key: 'live_moderation_enabled', label: 'Live Moderation Enabled', format: 'boolean' },
+ { key: 'featured', label: 'Featured', format: 'boolean' },
+ {
+ key: 'verified_languages',
+ label: 'Verified Languages',
+ listItems: [
+ { key: 'language', label: 'Language' },
+ { key: 'model_id', label: 'Model ID' },
+ { key: 'accent', label: 'Accent' },
+ { key: 'locale', label: 'Locale' },
+ { key: 'preview_url', label: 'Preview URL', format: 'url' },
+ ],
+ },
+ { key: 'notice_period', label: 'Notice Period', format: 'number' },
+ { key: 'instagram_username', label: 'Instagram Username' },
+ { key: 'twitter_username', label: 'Twitter Username' },
+ { key: 'youtube_username', label: 'Youtube Username' },
+ { key: 'tiktok_username', label: 'Tiktok Username' },
+ { key: 'image_url', label: 'Image URL' },
+ { key: 'is_added_by_user', label: 'Is Added By User', format: 'boolean' },
+ { key: 'is_bookmarked', label: 'Is Bookmarked' },
+ { key: 'orb_thumbnail_signed_urls', label: 'Orb Thumbnail Signed Urls' },
+ ],
+ },
+ { key: 'count', label: 'Count', format: 'number' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'total_count', label: 'Total Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsSimulateAgentConversationOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'simulated_conversation',
+ label: 'Simulated Conversation',
+ listItems: [
+ { key: 'role', label: 'Role' },
+ {
+ key: 'agent_metadata',
+ label: 'Agent Metadata',
+ children: [
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'branch_id', label: 'Branch ID' },
+ { key: 'workflow_node_id', label: 'Workflow Node ID' },
+ { key: 'version_id', label: 'Version ID' },
+ ],
+ },
+ { key: 'message', label: 'Message' },
+ { key: 'multivoice_message', label: 'Multivoice Message' },
+ { key: 'tool_calls', label: 'Tool Calls' },
+ { key: 'tool_results', label: 'Tool Results' },
+ { key: 'feedback', label: 'Feedback' },
+ { key: 'llm_override', label: 'Llm Override' },
+ { key: 'producing_llm', label: 'Producing Llm' },
+ { key: 'time_in_call_secs', label: 'Time In Call Secs', format: 'number' },
+ {
+ key: 'conversation_turn_metrics',
+ label: 'Conversation Turn Metrics',
+ children: [
+ {
+ key: 'metrics',
+ label: 'Metrics',
+ children: [
+ {
+ key: 'convai_llm_service_ttf_sentence',
+ label: 'Convai Llm Service Ttf Sentence',
+ children: [
+ { key: 'elapsed_time', label: 'Elapsed Time', format: 'number' },
+ ],
+ },
+ {
+ key: 'convai_llm_service_ttfb',
+ label: 'Convai Llm Service Ttfb',
+ children: [
+ { key: 'elapsed_time', label: 'Elapsed Time', format: 'number' },
+ ],
+ },
+ {
+ key: 'convai_llm_service_tt_last_sentence',
+ label: 'Convai Llm Service Tt Last Sentence',
+ children: [
+ { key: 'elapsed_time', label: 'Elapsed Time', format: 'number' },
+ ],
+ },
+ ],
+ },
+ { key: 'convai_asr_provider', label: 'Convai Asr Provider' },
+ { key: 'convai_tts_model', label: 'Convai Tts Model' },
+ { key: 'convai_tts_cascade', label: 'Convai Tts Cascade' },
+ ],
+ },
+ { key: 'rag_retrieval_info', label: 'Rag Retrieval Info' },
+ { key: 'llm_usage', label: 'Llm Usage' },
+ { key: 'interrupted', label: 'Interrupted', format: 'boolean' },
+ { key: 'ignored_as_backchannel', label: 'Ignored As Backchannel', format: 'boolean' },
+ { key: 'original_message', label: 'Original Message' },
+ { key: 'reasoning', label: 'Reasoning' },
+ { key: 'source_medium', label: 'Source Medium' },
+ { key: 'source_event_id', label: 'Source Event ID', format: 'number' },
+ { key: 'used_static_kb_document_ids', label: 'Used Static Kb Document IDs' },
+ { key: 'analysis', label: 'Analysis' },
+ { key: 'user_identifier', label: 'User Identifier' },
+ { key: 'id', label: 'ID' },
+ { key: 'compaction', label: 'Compaction' },
+ { key: 'triggered_guardrails', label: 'Triggered Guardrails' },
+ { key: 'file_input', label: 'File Input' },
+ { key: 'file_inputs', label: 'File Inputs' },
+ { key: 'contextual_update_info', label: 'Contextual Update Info' },
+ { key: 'config_snapshot_id', label: 'Config Snapshot ID' },
+ { key: 'reasoned', label: 'Reasoned', format: 'boolean' },
+ ],
+ },
+ {
+ key: 'analysis',
+ label: 'Analysis',
+ children: [
+ { key: 'evaluation_criteria_results', label: 'Evaluation Criteria Results' },
+ { key: 'data_collection_results', label: 'Data Collection Results' },
+ { key: 'evaluation_criteria_results_list', label: 'Evaluation Criteria Results List' },
+ { key: 'data_collection_results_list', label: 'Data Collection Results List' },
+ { key: 'call_successful', label: 'Call Successful' },
+ { key: 'call_success_score', label: 'Call Success Score' },
+ { key: 'transcript_summary', label: 'Transcript Summary' },
+ { key: 'call_summary_title', label: 'Call Summary Title' },
+ { key: 'scoped', label: 'Scoped' },
+ { key: 'sentiment_analysis', label: 'Sentiment Analysis' },
+ ],
+ },
+ { key: 'guardrails_result', label: 'Guardrails Result' },
+ ],
+};
+
+export const elevenlabsGetSubscriptionOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'tier', label: 'Tier' },
+ { key: 'character_count', label: 'Character Count', format: 'number' },
+ { key: 'character_limit', label: 'Character Limit', format: 'number' },
+ { key: 'max_character_limit_extension', label: 'Max Character Limit Extension', format: 'number' },
+ { key: 'max_credit_limit_extension', label: 'Max Credit Limit Extension', format: 'number' },
+ { key: 'can_extend_character_limit', label: 'Can Extend Character Limit', format: 'boolean' },
+ {
+ key: 'allowed_to_extend_character_limit',
+ label: 'Allowed To Extend Character Limit',
+ format: 'boolean',
+ },
+ { key: 'next_character_count_reset_unix', label: 'Next Character Count Reset Unix', format: 'number' },
+ { key: 'voice_slots_used', label: 'Voice Slots Used', format: 'number' },
+ { key: 'professional_voice_slots_used', label: 'Professional Voice Slots Used', format: 'number' },
+ {
+ key: 'professional_voice_slots_used_in_workspace',
+ label: 'Professional Voice Slots Used In Workspace',
+ format: 'number',
+ },
+ { key: 'voice_limit', label: 'Voice Limit', format: 'number' },
+ { key: 'max_voice_add_edits', label: 'Max Voice Add Edits', format: 'number' },
+ { key: 'voice_add_edit_counter', label: 'Voice Add Edit Counter', format: 'number' },
+ { key: 'professional_voice_limit', label: 'Professional Voice Limit', format: 'number' },
+ { key: 'can_extend_voice_limit', label: 'Can Extend Voice Limit', format: 'boolean' },
+ { key: 'can_use_instant_voice_cloning', label: 'Can Use Instant Voice Cloning', format: 'boolean' },
+ {
+ key: 'can_use_professional_voice_cloning',
+ label: 'Can Use Professional Voice Cloning',
+ format: 'boolean',
+ },
+ { key: 'currency', label: 'Currency' },
+ {
+ key: 'current_overage',
+ label: 'Current Overage',
+ children: [
+ { key: 'amount', label: 'Amount' },
+ { key: 'currency', label: 'Currency' },
+ ],
+ },
+ { key: 'status', label: 'Status' },
+ { key: 'billing_period', label: 'Billing Period' },
+ { key: 'character_refresh_period', label: 'Character Refresh Period' },
+ { key: 'next_invoice', label: 'Next Invoice' },
+ { key: 'open_invoices', label: 'Open Invoices' },
+ { key: 'has_open_invoices', label: 'Has Open Invoices', format: 'boolean' },
+ { key: 'pending_change', label: 'Pending Change' },
+ {
+ key: 'has_used_starter_coupon_on_account',
+ label: 'Has Used Starter Coupon On Account',
+ format: 'boolean',
+ },
+ {
+ key: 'has_used_creator_coupon_on_account',
+ label: 'Has Used Creator Coupon On Account',
+ format: 'boolean',
+ },
+ ],
+};
+
+export const elevenlabsCreateAgentTestOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ ],
+};
+
+export const elevenlabsGetAgentTestOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'from_conversation_metadata', label: 'From Conversation Metadata' },
+ { key: 'dynamic_variables', label: 'Dynamic Variables' },
+ {
+ key: 'chat_history',
+ label: 'Chat History',
+ listItems: [
+ { key: 'role', label: 'Role' },
+ { key: 'agent_metadata', label: 'Agent Metadata' },
+ { key: 'message', label: 'Message' },
+ { key: 'multivoice_message', label: 'Multivoice Message' },
+ { key: 'tool_calls', label: 'Tool Calls' },
+ { key: 'tool_results', label: 'Tool Results' },
+ { key: 'feedback', label: 'Feedback' },
+ { key: 'llm_override', label: 'Llm Override' },
+ { key: 'producing_llm', label: 'Producing Llm' },
+ { key: 'time_in_call_secs', label: 'Time In Call Secs', format: 'number' },
+ { key: 'conversation_turn_metrics', label: 'Conversation Turn Metrics' },
+ { key: 'rag_retrieval_info', label: 'Rag Retrieval Info' },
+ { key: 'llm_usage', label: 'Llm Usage' },
+ { key: 'interrupted', label: 'Interrupted', format: 'boolean' },
+ { key: 'ignored_as_backchannel', label: 'Ignored As Backchannel', format: 'boolean' },
+ { key: 'original_message', label: 'Original Message' },
+ { key: 'reasoning', label: 'Reasoning' },
+ { key: 'source_medium', label: 'Source Medium' },
+ { key: 'source_event_id', label: 'Source Event ID' },
+ { key: 'used_static_kb_document_ids', label: 'Used Static Kb Document IDs' },
+ { key: 'analysis', label: 'Analysis' },
+ { key: 'user_identifier', label: 'User Identifier' },
+ { key: 'id', label: 'ID' },
+ { key: 'compaction', label: 'Compaction' },
+ { key: 'triggered_guardrails', label: 'Triggered Guardrails' },
+ ],
+ },
+ { key: 'conversation_initiation_source', label: 'Conversation Initiation Source' },
+ { key: 'environment', label: 'Environment' },
+ { key: 'type', label: 'Type' },
+ { key: 'success_condition', label: 'Success Condition' },
+ {
+ key: 'success_examples',
+ label: 'Success Examples',
+ listItems: [
+ { key: 'response', label: 'Response' },
+ { key: 'type', label: 'Type' },
+ ],
+ },
+ {
+ key: 'failure_examples',
+ label: 'Failure Examples',
+ listItems: [
+ { key: 'response', label: 'Response' },
+ { key: 'type', label: 'Type' },
+ ],
+ },
+ { key: 'id', label: 'ID' },
+ { key: 'name', label: 'Name' },
+ ],
+};
+
+export const elevenlabsListAgentTestsOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'tests',
+ label: 'Tests',
+ labelKey: 'name',
+ listItems: [
+ { key: 'id', label: 'ID' },
+ { key: 'name', label: 'Name' },
+ {
+ key: 'access_info',
+ label: 'Access Info',
+ children: [
+ { key: 'is_creator', label: 'Is Creator', format: 'boolean' },
+ { key: 'creator_name', label: 'Creator Name' },
+ { key: 'creator_email', label: 'Creator Email', format: 'email' },
+ { key: 'role', label: 'Role' },
+ { key: 'anonymous_access_level_override', label: 'Anonymous Access Level Override' },
+ { key: 'access_source', label: 'Access Source' },
+ ],
+ },
+ { key: 'created_at_unix_secs', label: 'Created At Unix Secs', format: 'number' },
+ { key: 'last_updated_at_unix_secs', label: 'Last Updated At Unix Secs', format: 'number' },
+ { key: 'type', label: 'Type' },
+ { key: 'entity_type', label: 'Entity Type' },
+ { key: 'folder_parent_id', label: 'Folder Parent ID' },
+ { key: 'folder_path', label: 'Folder Path' },
+ { key: 'children_count', label: 'Children Count' },
+ { key: 'conversation_initiation_source', label: 'Conversation Initiation Source' },
+ ],
+ },
+ { key: 'next_cursor', label: 'Next Cursor' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsRunAgentTestsOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'branch_id', label: 'Branch ID' },
+ { key: 'version_id', label: 'Version ID' },
+ { key: 'ran_against_draft', label: 'Ran Against Draft', format: 'boolean' },
+ { key: 'created_at', label: 'Created At', format: 'number' },
+ { key: 'folder_id', label: 'Folder ID' },
+ { key: 'repeat_count', label: 'Repeat Count', format: 'number' },
+ { key: 'bucketing_status', label: 'Bucketing Status' },
+ { key: 'result_groups', label: 'Result Groups' },
+ {
+ key: 'test_runs',
+ label: 'Test Runs',
+ listItems: [
+ { key: 'test_run_id', label: 'Test Run ID' },
+ { key: 'test_info', label: 'Test Info' },
+ { key: 'test_invocation_id', label: 'Test Invocation ID' },
+ { key: 'agent_id', label: 'Agent ID' },
+ { key: 'branch_id', label: 'Branch ID' },
+ { key: 'version_id', label: 'Version ID' },
+ { key: 'ran_against_draft', label: 'Ran Against Draft', format: 'boolean' },
+ { key: 'workflow_node_id', label: 'Workflow Node ID' },
+ { key: 'status', label: 'Status' },
+ { key: 'agent_responses', label: 'Agent Responses' },
+ { key: 'test_id', label: 'Test ID' },
+ { key: 'test_name', label: 'Test Name' },
+ { key: 'condition_result', label: 'Condition Result' },
+ { key: 'last_updated_at_unix', label: 'Last Updated At Unix', format: 'number' },
+ {
+ key: 'metadata',
+ label: 'Metadata',
+ children: [
+ { key: 'workspace_id', label: 'Workspace ID' },
+ { key: 'test_name', label: 'Test Name' },
+ { key: 'ran_by_user_email', label: 'Ran By User Email', format: 'email' },
+ { key: 'test_type', label: 'Test Type' },
+ ],
+ },
+ { key: 'root_folder_id', label: 'Root Folder ID' },
+ { key: 'root_folder_name', label: 'Root Folder Name' },
+ { key: 'environment', label: 'Environment' },
+ { key: 'credits_used', label: 'Credits Used' },
+ { key: 'charging', label: 'Charging' },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsGetAgentTestSummariesOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'tests',
+ label: 'Tests By Test ID',
+ dynamicKey: true,
+ labelKey: 'name',
+ children: [
+ { key: 'id', label: 'ID' },
+ { key: 'name', label: 'Name' },
+ {
+ key: 'access_info',
+ label: 'Access Info',
+ children: [
+ { key: 'is_creator', label: 'Is Creator', format: 'boolean' },
+ { key: 'creator_name', label: 'Creator Name' },
+ { key: 'creator_email', label: 'Creator Email', format: 'email' },
+ { key: 'role', label: 'Role' },
+ { key: 'anonymous_access_level_override', label: 'Anonymous Access Level Override' },
+ { key: 'access_source', label: 'Access Source' },
+ ],
+ },
+ { key: 'created_at_unix_secs', label: 'Created At Unix Secs', format: 'number' },
+ { key: 'last_updated_at_unix_secs', label: 'Last Updated At Unix Secs', format: 'number' },
+ { key: 'type', label: 'Type' },
+ { key: 'entity_type', label: 'Entity Type' },
+ { key: 'folder_parent_id', label: 'Folder Parent ID' },
+ { key: 'folder_path', label: 'Folder Path' },
+ { key: 'children_count', label: 'Children Count' },
+ { key: 'conversation_initiation_source', label: 'Conversation Initiation Source' },
+ ],
+ },
+ ],
+};
+
+export const elevenlabsCreateToolOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'id', label: 'ID' },
+ {
+ key: 'tool_config',
+ label: 'Tool Config',
+ children: [
+ { key: 'type', label: 'Type' },
+ { key: 'name', label: 'Name' },
+ { key: 'description', label: 'Description' },
+ { key: 'response_timeout_secs', label: 'Response Timeout Secs', format: 'number' },
+ { key: 'disable_interruptions', label: 'Disable Interruptions', format: 'boolean' },
+ { key: 'interruption_mode', label: 'Interruption Mode' },
+ { key: 'force_pre_tool_speech', label: 'Force Pre Tool Speech', format: 'boolean' },
+ { key: 'pre_tool_speech', label: 'Pre Tool Speech' },
+ { key: 'assignments', label: 'Assignments' },
+ { key: 'tool_call_sound', label: 'Tool Call Sound' },
+ { key: 'tool_call_sound_behavior', label: 'Tool Call Sound Behavior' },
+ { key: 'tool_error_handling_mode', label: 'Tool Error Handling Mode' },
+ {
+ key: 'dynamic_variables',
+ label: 'Dynamic Variables',
+ children: [
+ { key: 'dynamic_variable_placeholders', label: 'Dynamic Variable Placeholders' },
+ ],
+ },
+ { key: 'execution_mode', label: 'Execution Mode' },
+ {
+ key: 'api_schema',
+ label: 'API Schema',
+ children: [
+ { key: 'request_headers', label: 'Request Headers' },
+ { key: 'kind', label: 'Kind' },
+ { key: 'url', label: 'URL', format: 'url' },
+ { key: 'method', label: 'Method' },
+ { key: 'path_params_schema', label: 'Path Params Schema' },
+ { key: 'query_params_schema', label: 'Query Params Schema' },
+ {
+ key: 'request_body_schema',
+ label: 'Request Body Schema',
+ children: [
+ { key: 'description', label: 'Description' },
+ { key: 'dynamic_variable', label: 'Dynamic Variable' },
+ { key: 'is_omitted', label: 'Is Omitted', format: 'boolean' },
+ { key: 'type', label: 'Type' },
+ { key: 'required', label: 'Required' },
+ {
+ key: 'properties',
+ label: 'Properties',
+ children: [
+ { key: 'q', label: 'Q' },
+ ],
+ },
+ ],
+ },
+ { key: 'response_body_schema', label: 'Response Body Schema' },
+ { key: 'response_filter', label: 'Response Filter' },
+ { key: 'content_type', label: 'Content Type' },
+ { key: 'auth_resolved_params', label: 'Auth Resolved Params' },
+ { key: 'auth_connection', label: 'Auth Connection' },
+ { key: 'mtls_auth_connection', label: 'Mtls Auth Connection' },
+ ],
+ },
+ { key: 'follow_redirects', label: 'Follow Redirects', format: 'boolean' },
+ { key: 'follow_redirects_allowed_domains', label: 'Follow Redirects Allowed Domains' },
+ ],
+ },
+ {
+ key: 'access_info',
+ label: 'Access Info',
+ children: [
+ { key: 'is_creator', label: 'Is Creator', format: 'boolean' },
+ { key: 'creator_name', label: 'Creator Name' },
+ { key: 'creator_email', label: 'Creator Email', format: 'email' },
+ { key: 'role', label: 'Role' },
+ { key: 'anonymous_access_level_override', label: 'Anonymous Access Level Override' },
+ { key: 'access_source', label: 'Access Source' },
+ ],
+ },
+ {
+ key: 'usage_stats',
+ label: 'Usage Stats',
+ children: [
+ { key: 'total_calls', label: 'Total Calls', format: 'number' },
+ { key: 'avg_latency_secs', label: 'Avg Latency Secs', format: 'number' },
+ ],
+ },
+ { key: 'response_mocks', label: 'Response Mocks' },
+ ],
+};
+
+export const elevenlabsListToolsOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'tools', label: 'Tools' },
+ { key: 'next_cursor', label: 'Next Cursor' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'count', label: 'Count', format: 'number' },
+ ],
+};
+
+export const elevenlabsGetUserOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'user_id', label: 'User ID' },
+ {
+ key: 'subscription',
+ label: 'Subscription',
+ children: [
+ { key: 'tier', label: 'Tier' },
+ { key: 'character_count', label: 'Character Count', format: 'number' },
+ { key: 'character_limit', label: 'Character Limit', format: 'number' },
+ { key: 'max_character_limit_extension', label: 'Max Character Limit Extension', format: 'number' },
+ { key: 'max_credit_limit_extension', label: 'Max Credit Limit Extension', format: 'number' },
+ { key: 'can_extend_character_limit', label: 'Can Extend Character Limit', format: 'boolean' },
+ {
+ key: 'allowed_to_extend_character_limit',
+ label: 'Allowed To Extend Character Limit',
+ format: 'boolean',
+ },
+ { key: 'next_character_count_reset_unix', label: 'Next Character Count Reset Unix', format: 'number' },
+ { key: 'voice_slots_used', label: 'Voice Slots Used', format: 'number' },
+ { key: 'professional_voice_slots_used', label: 'Professional Voice Slots Used', format: 'number' },
+ {
+ key: 'professional_voice_slots_used_in_workspace',
+ label: 'Professional Voice Slots Used In Workspace',
+ format: 'number',
+ },
+ { key: 'voice_limit', label: 'Voice Limit', format: 'number' },
+ { key: 'max_voice_add_edits', label: 'Max Voice Add Edits', format: 'number' },
+ { key: 'voice_add_edit_counter', label: 'Voice Add Edit Counter', format: 'number' },
+ { key: 'professional_voice_limit', label: 'Professional Voice Limit', format: 'number' },
+ { key: 'can_extend_voice_limit', label: 'Can Extend Voice Limit', format: 'boolean' },
+ { key: 'can_use_instant_voice_cloning', label: 'Can Use Instant Voice Cloning', format: 'boolean' },
+ {
+ key: 'can_use_professional_voice_cloning',
+ label: 'Can Use Professional Voice Cloning',
+ format: 'boolean',
+ },
+ { key: 'currency', label: 'Currency' },
+ {
+ key: 'current_overage',
+ label: 'Current Overage',
+ children: [
+ { key: 'amount', label: 'Amount' },
+ { key: 'currency', label: 'Currency' },
+ ],
+ },
+ { key: 'status', label: 'Status' },
+ { key: 'billing_period', label: 'Billing Period' },
+ { key: 'character_refresh_period', label: 'Character Refresh Period' },
+ ],
+ },
+ { key: 'subscription_extras', label: 'Subscription Extras' },
+ { key: 'is_new_user', label: 'Is New User', format: 'boolean' },
+ { key: 'can_use_delayed_payment_methods', label: 'Can Use Delayed Payment Methods', format: 'boolean' },
+ { key: 'is_onboarding_completed', label: 'Is Onboarding Completed', format: 'boolean' },
+ {
+ key: 'is_onboarding_checklist_completed',
+ label: 'Is Onboarding Checklist Completed',
+ format: 'boolean',
+ },
+ { key: 'show_compliance_terms', label: 'Show Compliance Terms', format: 'boolean' },
+ { key: 'first_name', label: 'First Name' },
+ { key: 'is_api_key_hashed', label: 'Is API Key Hashed', format: 'boolean' },
+ { key: 'xi_api_key_preview', label: 'Xi API Key Preview' },
+ { key: 'referral_link_code', label: 'Referral Link Code' },
+ { key: 'partnerstack_partner_default_link', label: 'Partnerstack Partner Default Link' },
+ { key: 'created_at', label: 'Created At', format: 'number' },
+ { key: 'seat_type', label: 'Seat Type' },
+ ],
+};
+
+export const elevenlabsGetVoiceOutputSchema: OutputSchema = {
+ fields: [
+ { key: 'voice_id', label: 'Voice ID' },
+ { key: 'name', label: 'Name' },
+ { key: 'samples', label: 'Samples' },
+ { key: 'category', label: 'Category' },
+ {
+ key: 'fine_tuning',
+ label: 'Fine Tuning',
+ children: [
+ { key: 'is_allowed_to_fine_tune', label: 'Is Allowed To Fine Tune', format: 'boolean' },
+ {
+ key: 'state',
+ label: 'State',
+ children: [
+ { key: 'eleven_multilingual_v2', label: 'Eleven Multilingual V2' },
+ { key: 'eleven_v2_5_flash', label: 'Eleven V2 5 Flash' },
+ { key: 'eleven_turbo_v2', label: 'Eleven Turbo V2' },
+ { key: 'eleven_v2_flash', label: 'Eleven V2 Flash' },
+ { key: 'eleven_flash_v2_5', label: 'Eleven Flash V2 5' },
+ { key: 'eleven_turbo_v2_5', label: 'Eleven Turbo V2 5' },
+ { key: 'eleven_flash_v2', label: 'Eleven Flash V2' },
+ ],
+ },
+ { key: 'verification_failures', label: 'Verification Failures' },
+ { key: 'verification_attempts_count', label: 'Verification Attempts Count', format: 'number' },
+ { key: 'manual_verification_requested', label: 'Manual Verification Requested', format: 'boolean' },
+ { key: 'language', label: 'Language' },
+ { key: 'progress', label: 'Progress' },
+ {
+ key: 'message',
+ label: 'Message',
+ children: [
+ { key: 'eleven_multilingual_v2', label: 'Eleven Multilingual V2' },
+ { key: 'eleven_v2_5_flash', label: 'Eleven V2 5 Flash' },
+ { key: 'eleven_turbo_v2', label: 'Eleven Turbo V2' },
+ { key: 'eleven_v2_flash', label: 'Eleven V2 Flash' },
+ { key: 'eleven_flash_v2_5', label: 'Eleven Flash V2 5' },
+ { key: 'eleven_turbo_v2_5', label: 'Eleven Turbo V2 5' },
+ { key: 'eleven_flash_v2', label: 'Eleven Flash V2' },
+ ],
+ },
+ { key: 'dataset_duration_seconds', label: 'Dataset Duration Seconds' },
+ { key: 'verification_attempts', label: 'Verification Attempts' },
+ { key: 'slice_ids', label: 'Slice IDs' },
+ { key: 'manual_verification', label: 'Manual Verification' },
+ { key: 'max_verification_attempts', label: 'Max Verification Attempts', format: 'number' },
+ {
+ key: 'next_max_verification_attempts_reset_unix_ms',
+ label: 'Next Max Verification Attempts Reset Unix Ms',
+ format: 'number',
+ },
+ ],
+ },
+ {
+ key: 'labels',
+ label: 'Labels',
+ children: [
+ { key: 'use_case', label: 'Use Case' },
+ { key: 'descriptive', label: 'Descriptive' },
+ { key: 'language', label: 'Language' },
+ { key: 'accent', label: 'Accent' },
+ { key: 'age', label: 'Age' },
+ { key: 'gender', label: 'Gender' },
+ ],
+ },
+ { key: 'description', label: 'Description' },
+ { key: 'preview_url', label: 'Preview URL', format: 'url' },
+ { key: 'available_for_tiers', label: 'Available For Tiers' },
+ {
+ key: 'settings',
+ label: 'Settings',
+ children: [
+ { key: 'stability', label: 'Stability', format: 'number' },
+ { key: 'use_speaker_boost', label: 'Use Speaker Boost', format: 'boolean' },
+ { key: 'similarity_boost', label: 'Similarity Boost', format: 'number' },
+ { key: 'style', label: 'Style', format: 'number' },
+ { key: 'speed', label: 'Speed', format: 'number' },
+ ],
+ },
+ { key: 'sharing', label: 'Sharing' },
+ { key: 'high_quality_base_model_ids', label: 'High Quality Base Model IDs' },
+ {
+ key: 'verified_languages',
+ label: 'Verified Languages',
+ listItems: [
+ { key: 'language', label: 'Language' },
+ { key: 'model_id', label: 'Model ID' },
+ { key: 'accent', label: 'Accent' },
+ { key: 'locale', label: 'Locale' },
+ { key: 'preview_url', label: 'Preview URL', format: 'url' },
+ ],
+ },
+ { key: 'collection_ids', label: 'Collection IDs' },
+ { key: 'safety_control', label: 'Safety Control' },
+ {
+ key: 'voice_verification',
+ label: 'Voice Verification',
+ children: [
+ { key: 'requires_verification', label: 'Requires Verification', format: 'boolean' },
+ { key: 'is_verified', label: 'Is Verified', format: 'boolean' },
+ { key: 'verification_failures', label: 'Verification Failures' },
+ { key: 'verification_attempts_count', label: 'Verification Attempts Count', format: 'number' },
+ { key: 'language', label: 'Language' },
+ { key: 'verification_attempts', label: 'Verification Attempts' },
+ ],
+ },
+ { key: 'permission_on_resource', label: 'Permission On Resource' },
+ { key: 'is_owner', label: 'Is Owner' },
+ { key: 'is_legacy', label: 'Is Legacy', format: 'boolean' },
+ { key: 'is_mixed', label: 'Is Mixed', format: 'boolean' },
+ { key: 'favorited_at_unix', label: 'Favorited At Unix' },
+ { key: 'created_at_unix', label: 'Created At Unix', format: 'number' },
+ { key: 'is_bookmarked', label: 'Is Bookmarked' },
+ { key: 'recording_quality', label: 'Recording Quality' },
+ { key: 'labelling_status', label: 'Labelling Status' },
+ { key: 'recording_quality_reason', label: 'Recording Quality Reason' },
+ { key: 'orb_thumbnail_signed_urls', label: 'Orb Thumbnail Signed Urls' },
+ ],
+};
+
+export const elevenlabsListVoicesOutputSchema: OutputSchema = {
+ fields: [
+ {
+ key: 'voices',
+ label: 'Voices',
+ labelKey: 'name',
+ listItems: [
+ { key: 'voice_id', label: 'Voice ID' },
+ { key: 'name', label: 'Name' },
+ { key: 'samples', label: 'Samples' },
+ { key: 'category', label: 'Category' },
+ {
+ key: 'fine_tuning',
+ label: 'Fine Tuning',
+ children: [
+ { key: 'is_allowed_to_fine_tune', label: 'Is Allowed To Fine Tune', format: 'boolean' },
+ {
+ key: 'state',
+ label: 'State',
+ children: [
+ { key: 'eleven_multilingual_v2', label: 'Eleven Multilingual V2' },
+ { key: 'eleven_v2_5_flash', label: 'Eleven V2 5 Flash' },
+ { key: 'eleven_turbo_v2', label: 'Eleven Turbo V2' },
+ { key: 'eleven_v2_flash', label: 'Eleven V2 Flash' },
+ { key: 'eleven_flash_v2_5', label: 'Eleven Flash V2 5' },
+ { key: 'eleven_turbo_v2_5', label: 'Eleven Turbo V2 5' },
+ { key: 'eleven_flash_v2', label: 'Eleven Flash V2' },
+ ],
+ },
+ { key: 'verification_failures', label: 'Verification Failures' },
+ { key: 'verification_attempts_count', label: 'Verification Attempts Count', format: 'number' },
+ {
+ key: 'manual_verification_requested',
+ label: 'Manual Verification Requested',
+ format: 'boolean',
+ },
+ { key: 'language', label: 'Language' },
+ {
+ key: 'progress',
+ label: 'Progress',
+ children: [
+ { key: 'eleven_v2_5_flash', label: 'Eleven V2 5 Flash', format: 'number' },
+ { key: 'eleven_v2_flash', label: 'Eleven V2 Flash', format: 'number' },
+ { key: 'eleven_flash_v2_5', label: 'Eleven Flash V2 5', format: 'number' },
+ { key: 'eleven_flash_v2', label: 'Eleven Flash V2', format: 'number' },
+ ],
+ },
+ {
+ key: 'message',
+ label: 'Message',
+ children: [
+ { key: 'eleven_multilingual_v2', label: 'Eleven Multilingual V2' },
+ { key: 'eleven_v2_5_flash', label: 'Eleven V2 5 Flash' },
+ { key: 'eleven_turbo_v2', label: 'Eleven Turbo V2' },
+ { key: 'eleven_v2_flash', label: 'Eleven V2 Flash' },
+ { key: 'eleven_flash_v2_5', label: 'Eleven Flash V2 5' },
+ { key: 'eleven_turbo_v2_5', label: 'Eleven Turbo V2 5' },
+ { key: 'eleven_flash_v2', label: 'Eleven Flash V2' },
+ ],
+ },
+ { key: 'dataset_duration_seconds', label: 'Dataset Duration Seconds' },
+ { key: 'verification_attempts', label: 'Verification Attempts' },
+ { key: 'slice_ids', label: 'Slice IDs' },
+ { key: 'manual_verification', label: 'Manual Verification' },
+ { key: 'max_verification_attempts', label: 'Max Verification Attempts', format: 'number' },
+ {
+ key: 'next_max_verification_attempts_reset_unix_ms',
+ label: 'Next Max Verification Attempts Reset Unix Ms',
+ format: 'number',
+ },
+ ],
+ },
+ {
+ key: 'labels',
+ label: 'Labels',
+ children: [
+ { key: 'use_case', label: 'Use Case' },
+ { key: 'descriptive', label: 'Descriptive' },
+ { key: 'language', label: 'Language' },
+ { key: 'accent', label: 'Accent' },
+ { key: 'age', label: 'Age' },
+ { key: 'gender', label: 'Gender' },
+ ],
+ },
+ { key: 'description', label: 'Description' },
+ { key: 'preview_url', label: 'Preview URL', format: 'url' },
+ { key: 'available_for_tiers', label: 'Available For Tiers' },
+ { key: 'settings', label: 'Settings' },
+ { key: 'sharing', label: 'Sharing' },
+ { key: 'high_quality_base_model_ids', label: 'High Quality Base Model IDs' },
+ {
+ key: 'verified_languages',
+ label: 'Verified Languages',
+ listItems: [
+ { key: 'language', label: 'Language' },
+ { key: 'model_id', label: 'Model ID' },
+ { key: 'accent', label: 'Accent' },
+ { key: 'locale', label: 'Locale' },
+ { key: 'preview_url', label: 'Preview URL', format: 'url' },
+ ],
+ },
+ { key: 'collection_ids', label: 'Collection IDs' },
+ { key: 'safety_control', label: 'Safety Control' },
+ {
+ key: 'voice_verification',
+ label: 'Voice Verification',
+ children: [
+ { key: 'requires_verification', label: 'Requires Verification', format: 'boolean' },
+ { key: 'is_verified', label: 'Is Verified', format: 'boolean' },
+ { key: 'verification_failures', label: 'Verification Failures' },
+ { key: 'verification_attempts_count', label: 'Verification Attempts Count', format: 'number' },
+ { key: 'language', label: 'Language' },
+ { key: 'verification_attempts', label: 'Verification Attempts' },
+ ],
+ },
+ { key: 'permission_on_resource', label: 'Permission On Resource' },
+ { key: 'is_owner', label: 'Is Owner', format: 'boolean' },
+ { key: 'is_legacy', label: 'Is Legacy', format: 'boolean' },
+ { key: 'is_mixed', label: 'Is Mixed', format: 'boolean' },
+ { key: 'favorited_at_unix', label: 'Favorited At Unix' },
+ { key: 'created_at_unix', label: 'Created At Unix', format: 'number' },
+ { key: 'is_bookmarked', label: 'Is Bookmarked' },
+ { key: 'recording_quality', label: 'Recording Quality' },
+ { key: 'labelling_status', label: 'Labelling Status' },
+ { key: 'recording_quality_reason', label: 'Recording Quality Reason' },
+ ],
+ },
+ { key: 'count', label: 'Count', format: 'number' },
+ { key: 'has_more', label: 'Has More', format: 'boolean' },
+ { key: 'total_count', label: 'Total Count', format: 'number' },
+ { key: 'next_page_token', label: 'Next Page Token' },
+ ],
+};