← Shopify Partner + ElevenLabs integrations

Text To Speech with ElevenLabs API on New App Installs from Shopify Partner API

Pipedream makes it easy to connect APIs for ElevenLabs, Shopify Partner and 2,900+ other apps remarkably fast.

Trigger workflow on
New App Installs from the Shopify Partner API
Next, do this
Text To Speech with the ElevenLabs API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

This integration creates a workflow with a Shopify Partner trigger and ElevenLabs action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New App Installs trigger
    1. Connect your Shopify Partner account
    2. Configure timer
    3. Configure Shopify App ID
    4. Optional- Configure occurredAtMin
    5. Optional- Configure occurredAtMax
  3. Configure the Text To Speech action
    1. Connect your ElevenLabs account
    2. Select a Voice ID
    3. Optional- Select a Model ID
    4. Configure Text
    5. Optional- Configure Similarity Boost
    6. Optional- Configure Stability
    7. Configure syncDir
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new events when new shops install your app.
Version:0.1.4
Key:shopify_partner-new-app-installs

Shopify Partner Overview

The Shopify Partner API lets you tap into a comprehensive suite of features to manage and analyze multiple Shopify stores. You can automate tasks like creating development stores, adding collaborators, tracking payouts, and more. This API serves as a powerful tool for developers, agencies, and freelancers who manage multiple Shopify shops for their clients. Through Pipedream, you can effortlessly integrate Shopify Partner API with other services to create tailored, efficient workflows that save time and enhance productivity.

Trigger Code

import common from "../../common/common.mjs";
import shopify from "../../shopify_partner.app.mjs";
import getAppInstalls from "../../common/queries/getAppInstalls.mjs";

export default {
  key: "shopify_partner-new-app-installs",
  name: "New App Installs",
  type: "source",
  version: "0.1.4",
  description: "Emit new events when new shops install your app.",
  ...common,
  props: {
    ...common.props,
    db: "$.service.db",
    appId: {
      propDefinition: [
        shopify,
        "appId",
      ],
    },
    occurredAtMin: {
      propDefinition: [
        shopify,
        "occurredAtMin",
      ],
    },
    occurredAtMax: {
      propDefinition: [
        shopify,
        "occurredAtMax",
      ],
    },
  },
  async run() {
    const {
      appId, occurredAtMin, occurredAtMax, db,
    } = this;

    const variables = {
      appId: `gid://partners/App/${appId}`,
    };
    if (occurredAtMin) {
      variables.occurredAtMin = occurredAtMin.trim();
    }
    if (occurredAtMax) {
      variables.occurredAtMax = occurredAtMax.trim();
    }

    await this.shopify.query({
      db,
      key: "shopify_partner-installs",
      query: getAppInstalls,
      variables,
      handleEmit: (data) => {
        if (data?.app?.events) {
          data.app.events.edges.map(({ node: { ...event } }) => {
            this.$emit(event, {
              id: event.occurredAt,
              summary: `${event.shop.name} (${event.shop.myshopifyDomain}) installed ${event.app.name}`,
            });
          });
        }
      },
      getCursor: (data) => {
        const edges = data?.transactions?.edges || [];
        const [
          last,
        ] = edges.reverse();
        return last?.cursor;
      },
      hasNextPagePath: "app.events.pageInfo.hasNextPage",
    });
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Shopify PartnershopifyappThis component uses the Shopify Partner app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timertimer$.interface.timer

API Polling Frequency

Shopify App IDappIdstring

Open your app in the partner portal, and look at the URL to find its ID. If your URL is https://partners.shopify.com/3027494/apps/51358007297/overview, enter 51358007297 here.

occurredAtMinoccurredAtMinstring

Only include events after this specific time (ISO timestamp)

occurredAtMaxoccurredAtMaxstring

Only include events up to this specific time (ISO timestamp)

Trigger Authentication

Shopify Partner uses API keys for authentication. When you connect your Shopify Partner account, Pipedream securely stores the keys so you can easily authenticate to Shopify Partner APIs in both code and no-code steps.

Create an API Key

In order to authorize Pipedream to access your Shopify Partner Account, you will need to generate a new API key for Pipedream to use on your behalf.

First, create an API client in your Shopify Partner account

Make sure to include these scopes:

  • View financials
  • Manage apps

You will use this API key to authenticate your Pipedream workflows with Shopify Partners.

  1. Login to Shopify Partners, click Settings & open API Key Management

Open API key management in the Shopify Partner Portal

  1. Create a new API key

Create API key

  1. Enter in "Pipedream" as the name and select the appropriate scopes, then click "Save" to finish

Enter in Pipedream API key options

Find your Organization ID

After you log into the Shopify Partner portal, look at the URL for your organization ID

Find your Shopify Partner Organization ID

Find your App ID

After opening your app in the partner portal, look in the URL to find it's ID:

Find your Shopify App ID

About Shopify Partner

Shopify Partner API connection. Listen to events like installs, uninstalls, charges & transactions.

Action

Description:Retrieve an audio file. [See the documentation](https://docs.elevenlabs.io/api-reference/text-to-speech)
Version:0.0.6
Key:elevenlabs-text-to-speech

ElevenLabs Overview

The ElevenLabs API offers text-to-speech capabilities with realistic voice synthesis. Integrating this API on Pipedream allows you to build automated workflows that convert text content into spoken audio files. You can trigger these conversions from various events, process the text data, send it to the ElevenLabs API, and handle the audio output—all within a serverless environment.

Action Code

import fs from "fs";
import stream from "stream";
import { promisify } from "util";
import elevenlabs from "../../elevenlabs.app.mjs";

export default {
  key: "elevenlabs-text-to-speech",
  name: "Text To Speech",
  version: "0.0.6",
  annotations: {
    destructiveHint: false,
    openWorldHint: true,
    readOnlyHint: true,
  },
  description: "Retrieve an audio file. [See the documentation](https://docs.elevenlabs.io/api-reference/text-to-speech)",
  type: "action",
  props: {
    elevenlabs,
    voiceId: {
      propDefinition: [
        elevenlabs,
        "voiceId",
      ],
    },
    modelId: {
      propDefinition: [
        elevenlabs,
        "modelId",
      ],
      optional: true,
    },
    text: {
      type: "string",
      label: "Text",
      description: "The text that will get converted into speech.",
    },
    similarityBoost: {
      type: "string",
      label: "Similarity Boost",
      description: "Low values are recommended if background artifacts are present in generated speech. High enhancement boosts overall voice clarity and target speaker similarity. Very high values can cause artifacts, so adjusting this setting to find the optimal value is encouraged. It goes from `0.0` to `1.0`.",
      optional: true,
    },
    stability: {
      type: "string",
      label: "Stability",
      description: "Decreasing stability can make speech more expressive with output varying between re-generations. It can also lead to instabilities. Increasing stability will make the voice more consistent between re-generations, but it can also make it sounds a bit monotone. On longer text fragments we recommend lowering this value. It goes from `0.0` to `1.0`.",
      optional: true,
    },
    syncDir: {
      type: "dir",
      accessMode: "write",
      sync: true,
    },
  },
  async run({ $ }) {
    const {
      elevenlabs,
      voiceId,
      modelId,
      text,
      similarityBoost,
      stability,
    } = this;

    const data = {
      model_id: modelId,
      text,
    };

    if (similarityBoost || stability) {
      data.voice_settings = {
        similarity_boost: similarityBoost,
        stability,
      };
    }

    const {
      data: response, headers,
    } = await elevenlabs.textToSpeech({
      $,
      voiceId,
      data,
    });

    const filePath = `/tmp/${headers["history-item-id"]}.mp3`;

    const pipeline = promisify(stream.pipeline);
    await pipeline(response, fs.createWriteStream(filePath));

    $.export("$summary", `A speech with id: ${headers["history-item-id"]} was successfully generated!`);
    return {
      filePath,
    };
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
ElevenLabselevenlabsappThis component uses the ElevenLabs app.
Voice IDvoiceIdstringSelect a value from the drop down menu.
Model IDmodelIdstringSelect a value from the drop down menu.
Texttextstring

The text that will get converted into speech.

Similarity BoostsimilarityBooststring

Low values are recommended if background artifacts are present in generated speech. High enhancement boosts overall voice clarity and target speaker similarity. Very high values can cause artifacts, so adjusting this setting to find the optimal value is encouraged. It goes from 0.0 to 1.0.

Stabilitystabilitystring

Decreasing stability can make speech more expressive with output varying between re-generations. It can also lead to instabilities. Increasing stability will make the voice more consistent between re-generations, but it can also make it sounds a bit monotone. On longer text fragments we recommend lowering this value. It goes from 0.0 to 1.0.

syncDirsyncDirdir

Action Authentication

ElevenLabs uses API keys for authentication. When you connect your ElevenLabs account, Pipedream securely stores the keys so you can easily authenticate to ElevenLabs APIs in both code and no-code steps.

To retrieve your API Key,

  • Navigate to your ElevenLabs account and sign in
  • Click the dropdown on the top right
  • Go to “Profile” > “API Key”

About ElevenLabs

Research lab exploring new frontiers of Voice AI. Deploying tools for prime long-form synthetic speech, voice cloning and automatic dubbing.

More Ways to Connect ElevenLabs + Shopify Partner

Download History Items with ElevenLabs API on New App Charges from Shopify Partner API
Shopify Partner + ElevenLabs
 
Try it
Download History Items with ElevenLabs API on New App Installs from Shopify Partner API
Shopify Partner + ElevenLabs
 
Try it
Download History Items with ElevenLabs API on New App Relationship Events from Shopify Partner API
Shopify Partner + ElevenLabs
 
Try it
Download History Items with ElevenLabs API on New App Uninstalls from Shopify Partner API
Shopify Partner + ElevenLabs
 
Try it
Get Audio From History Item with ElevenLabs API on New App Charges from Shopify Partner API
Shopify Partner + ElevenLabs
 
Try it
New App Charges from the Shopify Partner API

Emit new events when new app charges made to your partner account.

 
Try it
New App Installs from the Shopify Partner API

Emit new events when new shops install your app.

 
Try it
New App Relationship Events from the Shopify Partner API

Emit new events when new shops installs, uninstalls, subscribes or unsubscribes your app.

 
Try it
New App Uninstalls from the Shopify Partner API

Emit new events when new shops uninstall your app.

 
Try it
New History Item Created from the ElevenLabs API

Emit new event when a new history item is created.

 
Try it
Verify Webhook with the Shopify Partner API

Verify an incoming webhook from Shopify. Exits the workflow if the signature is not valid, otherwise returns true

 
Try it
Add Voice with the ElevenLabs API

Add a voice from one or more audio files. See the documentation

 
Try it
Create Agent with the ElevenLabs API

Create an agent in Eleventlabs. See the documentation

 
Try it
Download History Items with the ElevenLabs API

Download one or more history items to your workflow's tmp directory. If one history item ID is provided, we will return a single audio file. If more than one history item IDs are provided, we will provide the history items packed into a .zip file. See the documentation

 
Try it
Get Audio From History Item with the ElevenLabs API

Returns the audio of an history item and converts it to a file. See the documentation

 
Try it

Explore Other Apps

1
-
24
of
2,900+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
Premium
AWS
AWS
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Premium
Twilio SendGrid
Twilio SendGrid
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Premium
Klaviyo
Klaviyo
Email Marketing and SMS Marketing Platform
Premium
Zendesk
Zendesk
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
Premium
ServiceNow
ServiceNow
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.