← GoDial + OpenAI (ChatGPT) integrations

Create Embeddings with OpenAI (ChatGPT) API on New Updated Contact from GoDial API

Pipedream makes it easy to connect APIs for OpenAI (ChatGPT), GoDial and 1,600+ other apps remarkably fast.

Trigger workflow on
New Updated Contact from the GoDial API
Next, do this
Create Embeddings with the OpenAI (ChatGPT) API
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 750,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 GoDial trigger and OpenAI (ChatGPT) 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 Updated Contact trigger
    1. Connect your GoDial account
    2. Configure timer
    3. Select a List ID
  3. Configure the Create Embeddings action
    1. Connect your OpenAI (ChatGPT) account
    2. Select a Model
    3. Configure Input
    4. Optional- Configure User
  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 event on a contact is updated.
Version:0.0.3
Key:godial-new-updated-contact

GoDial Overview

The GoDial API can be used to build a variety of applications, including:

  • A dialer application to make phone calls
  • A VoIP application to make calls over the internet
  • A call center application to manage customer calls
  • An IVR system to manage phone calls for businesses

Trigger Code

import godial from "../../app/godial.app.mjs";
import { DEFAULT_POLLING_SOURCE_TIMER_INTERVAL } from "@pipedream/platform";

export default {
  name: "New Updated Contact",
  version: "0.0.3",
  key: "godial-new-updated-contact",
  description: "Emit new event on a contact is updated.",
  type: "source",
  dedupe: "unique",
  props: {
    godial,
    db: "$.service.db",
    timer: {
      type: "$.interface.timer",
      static: {
        intervalSeconds: DEFAULT_POLLING_SOURCE_TIMER_INTERVAL,
      },
    },
    listId: {
      propDefinition: [
        godial,
        "listId",
      ],
    },
  },
  methods: {
    emitEvent(data) {
      if (!data.modifiedOn) {
        return;
      }

      this.$emit(data, {
        id: `${data.id} - ${data.modifiedOn}`,
        summary: `New contact updated with ID ${data.id}`,
        ts: Date.parse(data.modifiedOn),
      });
    },
  },
  async run() {
    const contacts = await this.godial.getContacts({
      listId: this.listId,
    });

    contacts.reverse().forEach(this.emitEvent);
  },
};

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
GoDialgodialappThis component uses the GoDial app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer
List IDlistIdstringSelect a value from the drop down menu.

Trigger Authentication

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

To retrieve your API Token,

  • Navigate to your GoDial account and sign in
  • Go to “Integration” > “External API” > “Connect”

About GoDial

GoDial is a mobile app to help increase sales. Simple import your contact lists. Auto dial calls. Save call status. Schedule Callbacks. Add Notes.

Action

Description:Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. [See the docs here](https://platform.openai.com/docs/api-reference/embeddings)
Version:0.0.6
Key:openai-create-embeddings

OpenAI (ChatGPT) Overview

The OpenAI API is a powerful tool that provides access to a range of
high-powered machine learning models. With the OpenAI API, developers can
create products, services, and tools that enable humanizing AI experiences, and
build applications that extend the power of human language.

Using the OpenAI API, developers can create language-driven applications such
as:

  • Natural language understanding and sentiment analysis
  • Text-based search
  • Question answering
  • Dialogue systems and conversation agents
  • Intelligent text completion
  • Text summarization
  • Text classification
  • Machine translation
  • Language generation
  • Multi-factor authentication
  • Anomaly detection
  • Text analysis

Action Code

import { ConfigurationError } from "@pipedream/platform";
import openai from "../../openai.app.mjs";
import common from "../common/common.mjs";

export default {
  name: "Create Embeddings",
  version: "0.0.6",
  key: "openai-create-embeddings",
  description: "Get a vector representation of a given input that can be easily consumed by machine learning models and algorithms. [See the docs here](https://platform.openai.com/docs/api-reference/embeddings)",
  type: "action",
  props: {
    openai,
    modelId: {
      propDefinition: [
        openai,
        "embeddingsModelId",
      ],
    },
    input: {
      label: "Input",
      description: "Input text to get embeddings for, encoded as a string or array of tokens. To get embeddings for multiple inputs in a single request, pass an array of strings or array of token arrays. Each input must not exceed 8192 tokens in length.",
      type: "string[]",
    },
    user: common.props.user,
  },
  async run({ $ }) {
    // Confirm no element is more than 8192 tokens in length
    for (const [
      i,
      element,
    ] of this.input.entries()) {
      if (element.length > 8192) {
        throw new ConfigurationError(`Element #${i} is more than 8192 tokens in length. Each input must not exceed 8192 tokens in length.`);
      }
    }

    const response = await this.openai.createEmbeddings({
      $,
      args: {
        model: this.modelId,
        input: this.input,
      },
    });

    if (response) {
      $.export("$summary", "Successfully created embeddings");
    }

    return response;
  },
};

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
OpenAI (ChatGPT)openaiappThis component uses the OpenAI (ChatGPT) app.
ModelmodelIdstringSelect a value from the drop down menu.
Inputinputstring[]

Input text to get embeddings for, encoded as a string or array of tokens. To get embeddings for multiple inputs in a single request, pass an array of strings or array of token arrays. Each input must not exceed 8192 tokens in length.

Useruserstring

A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. Learn more here.

Action Authentication

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

About 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 apps like ChatGPT and DALL·E 2.

More Ways to Connect OpenAI (ChatGPT) + GoDial

Add Contact with GoDial API on New File Created from OpenAI (ChatGPT) API
OpenAI (ChatGPT) + GoDial
 
Try it
Add Member with GoDial API on New File Created from OpenAI (ChatGPT) API
OpenAI (ChatGPT) + GoDial
 
Try it
Add Contact with GoDial API on New Fine Tuning Job Created from OpenAI (ChatGPT) API
OpenAI (ChatGPT) + GoDial
 
Try it
Add Member with GoDial API on New Fine Tuning Job Created from OpenAI (ChatGPT) API
OpenAI (ChatGPT) + GoDial
 
Try it
Chat with OpenAI (ChatGPT) API on New Updated Contact from GoDial API
GoDial + OpenAI (ChatGPT)
 
Try it
New Updated Contact from the GoDial API

Emit new event on a contact is updated.

 
Try it
New File Created from the OpenAI (ChatGPT) API

Emit new event when a new file is created in OpenAI. See the documentation

 
Try it
New Fine Tuning Job Created from the OpenAI (ChatGPT) API

Emit new event when a new fine-tuning job is created in OpenAI. See the documentation

 
Try it
Add Contact with the GoDial API

Adds a contact. See docs here

 
Try it
Add Member with the GoDial API

Adds a member. See docs here

 
Try it
Chat with the OpenAI (ChatGPT) API

The Chat API, using the gpt-3.5-turbo or gpt-4 model. See docs here

 
Try it
Summarize Text with the OpenAI (ChatGPT) API

Summarizes text using the Chat API

 
Try it
Classify Items into Categories with the OpenAI (ChatGPT) API

Classify items into specific categories using the Chat API

 
Try it

Explore Other Apps

1
-
12
of
1,600+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
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.
Beta
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.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Beta
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
Telegram Bot
Telegram Bot
Telegram is a cloud-based instant messaging and voice over IP service
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 apps like ChatGPT and DALL·E 2.
Google Sheets
Google Sheets
With Google Sheets, you can create, edit, and collaborate wherever you are
Discord
Discord
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
GitHub
GitHub
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.