-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New Components - High Level & Elevenlabs #16187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
4bb82a6
new components
michelle0927 0423fd7
pnpm-lock.yaml
michelle0927 602aaf9
Merge remote-tracking branch 'origin/master' into issue-16094
michelle0927 8094dcd
pnpm-lock.yaml
michelle0927 e0d31bb
updates
michelle0927 71037cf
updates/typos
michelle0927 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
133 changes: 133 additions & 0 deletions
133
components/elevenlabs/actions/create-agent/create-agent.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,133 @@ | ||
| import elevenlabs from "../../elevenlabs.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "elevenlabs-create-agent", | ||
| name: "Create Agent", | ||
| description: "Create an agent in Eleventlabs. [See the documentation](https://elevenlabs.io/docs/api-reference/agents/create-agent)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| elevenlabs, | ||
| prompt: { | ||
| type: "string", | ||
| label: "Prompt", | ||
| description: "The prompt for the agent", | ||
| }, | ||
| name: { | ||
| type: "string", | ||
| label: "Name", | ||
| description: "A name to make the agent easier to find", | ||
| optional: true, | ||
| }, | ||
| llm: { | ||
| type: "string", | ||
| label: "LLM", | ||
| description: "The LLM to query with the prompt and the chat history", | ||
| options: [ | ||
| "gpt-4o-mini", | ||
| "gpt-4o", | ||
| "gpt-4", | ||
| "gpt-4-turbo", | ||
| "gpt-3.5-turbo", | ||
| "gemini-1.5-pro", | ||
| "gemini-1.5-flash", | ||
| "gemini-2.0-flash-001", | ||
| "gemini-2.0-flash-lite", | ||
| "gemini-1.0-pro", | ||
| "claude-3-7-sonnet", | ||
| "claude-3-5-sonnet", | ||
| ], | ||
| optional: true, | ||
| }, | ||
| temperature: { | ||
| type: "string", | ||
| label: "Temperature", | ||
| description: "The temperature for the LLM. Defaults to `0`", | ||
| optional: true, | ||
| }, | ||
| maxTokens: { | ||
| type: "integer", | ||
| label: "Max Tokens", | ||
| description: "If greater than 0, maximum number of tokens the LLM can predict", | ||
| optional: true, | ||
| }, | ||
| firstMessage: { | ||
| type: "string", | ||
| label: "First Message", | ||
| description: "If non-empty, the first message the agent will say. If empty, the agent waits for the user to start the discussion.", | ||
| optional: true, | ||
| }, | ||
| language: { | ||
| type: "string", | ||
| label: "Language", | ||
| description: "Language of the agent - used for ASR and TTS. Defaults to `en`", | ||
| optional: true, | ||
| }, | ||
| maxDurationSeconds: { | ||
| type: "integer", | ||
| label: "Max Duration in Seconds", | ||
| description: "The maximum duration of a conversation in seconds. Defaults to `600`", | ||
| optional: true, | ||
| }, | ||
| turnTimeout: { | ||
| type: "string", | ||
| label: "Turn Timeout", | ||
| description: "Maximum wait time for the user’s reply before re-engaging the user. Defaults to `7`", | ||
| optional: true, | ||
| }, | ||
| voiceId: { | ||
| propDefinition: [ | ||
| elevenlabs, | ||
| "voiceId", | ||
| ], | ||
| description: "The voice ID to use for TTS", | ||
| optional: true, | ||
| }, | ||
| ttsModelId: { | ||
| type: "string", | ||
| label: "TTS Model ID", | ||
| description: "The model to use for TTS", | ||
| options: [ | ||
| "eleven_turbo_v2", | ||
| "eleven_turbo_v2_5", | ||
| "eleven_flash_v2", | ||
| "eleven_flash_v2_5", | ||
| ], | ||
| optional: true, | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.elevenlabs.createAgent({ | ||
| $, | ||
| data: { | ||
| conversation_config: { | ||
| conversation: { | ||
| max_duration_seconds: this.maxDurationSeconds, | ||
| }, | ||
| turn: { | ||
| turn_timeout: this.turnTimeout && +this.turnTimeout, | ||
| }, | ||
| agent: { | ||
| first_message: this.firstMessage, | ||
| language: this.language, | ||
| prompt: { | ||
| prompt: this.prompt, | ||
| llm: this.llm, | ||
| temperature: this.temperature && +this.temperature, | ||
| max_tokens: this.maxTokens, | ||
| }, | ||
| }, | ||
| tts: { | ||
| voice_id: this.voiceId, | ||
| model_id: this.modelId, | ||
| }, | ||
| }, | ||
| name: this.name, | ||
| }, | ||
| }); | ||
| if (response?.agent_id) { | ||
| $.export("$summary", `Successfully created agent with ID: ${response.agent_id}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
components/elevenlabs/actions/make-outbound-call/make-outbound-call.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| import elevenlabs from "../../elevenlabs.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "elevenlabs-make-outbound-call", | ||
| name: "Make Outbound Call", | ||
| description: "Handle an outbound call via Twilio with Elevenlabs. [See the documentation](https://elevenlabs.io/docs/api-reference/conversations/twilio-outbound-call)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| elevenlabs, | ||
| agentId: { | ||
| propDefinition: [ | ||
| elevenlabs, | ||
| "agentId", | ||
| ], | ||
| }, | ||
| agentPhoneNumberId: { | ||
| propDefinition: [ | ||
| elevenlabs, | ||
| "phoneNumberId", | ||
| ], | ||
| }, | ||
| toNumber: { | ||
| type: "string", | ||
| label: "To Number", | ||
| description: "The recipient phone number", | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.elevenlabs.makeOutboundCall({ | ||
| $, | ||
| data: { | ||
| agent_id: this.agentId, | ||
| agent_phone_number: this.agentPhoneNumberId, | ||
| to_number: this.toNumber, | ||
| }, | ||
| }); | ||
| if (response?.success) { | ||
| $.export("$summary", `Successfully made outbound call to ${this.toNumber}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
components/highlevel_oauth/actions/add-contact-to-campaign/add-contact-to-campaign.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| import common from "../../common/base.mjs"; | ||
|
|
||
| export default { | ||
| ...common, | ||
| key: "highlevel_oauth-add-contact-to-campaign", | ||
| name: "Add Contact to Campaign", | ||
| description: "Adds an existing contact to a campaign. [See the documentation](https://highlevel.stoplight.io/docs/integrations/ecf9b5b45deaf-add-contact-to-campaign)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| ...common.props, | ||
| contactId: { | ||
| propDefinition: [ | ||
| common.props.app, | ||
| "contactId", | ||
| ], | ||
| }, | ||
| campaignId: { | ||
| propDefinition: [ | ||
| common.props.app, | ||
| "campaignId", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.app.addContactToCampaign({ | ||
| $, | ||
| contactId: this.contactId, | ||
| campaignId: this.campaignId, | ||
| }); | ||
| if (response?.succeded) { | ||
| $.export("$summary", `Successfully added conatct to campaign with ID: ${this.campaignId}`); | ||
| } | ||
| return response; | ||
| }, | ||
| }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.