← OpenAI (ChatGPT) + Paystack integrations

Charge Authorization with Paystack API on New Fine Tuning Job Created from OpenAI (ChatGPT) API

Pipedream makes it easy to connect APIs for Paystack, OpenAI (ChatGPT) and 2,700+ other apps remarkably fast.

Trigger workflow on
New Fine Tuning Job Created from the OpenAI (ChatGPT) API
Next, do this
Charge Authorization with the Paystack 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 OpenAI (ChatGPT) trigger and Paystack 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 Fine Tuning Job Created trigger
    1. Connect your OpenAI (ChatGPT) account
    2. Configure timer
  3. Configure the Charge Authorization action
    1. Connect your Paystack account
    2. Select a Email
    3. Configure Amount
    4. Select a Authorization Code
  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 when a new fine-tuning job is created in OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/fine-tuning/list)
Version:0.0.14
Key:openai-new-fine-tuning-job-created

OpenAI (ChatGPT) Overview

OpenAI provides a suite of powerful AI models through its API, enabling developers to integrate advanced natural language processing and generative capabilities into their applications. Here’s an overview of the services offered by OpenAI's API:

Use Python or Node.js code to make fully authenticated API requests with your OpenAI account:

Trigger Code

import common from "../common/common.mjs";
import sampleEmit from "./test-event.mjs";

export default {
  ...common,
  key: "openai-new-fine-tuning-job-created",
  name: "New Fine Tuning Job Created",
  description: "Emit new event when a new fine-tuning job is created in OpenAI. [See the documentation](https://platform.openai.com/docs/api-reference/fine-tuning/list)",
  version: "0.0.14",
  type: "source",
  dedupe: "unique",
  methods: {
    ...common.methods,
    getData() {
      return this.openai.listFineTuningJobs();
    },
    getMeta(item) {
      return {
        id: item.id,
        summary: `New Fine Tuning Job: ${item.id}`,
        ts: item.created_at * 1000,
      };
    },
  },
  sampleEmit,
};

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
OpenAI (ChatGPT)openaiappThis component uses the OpenAI (ChatGPT) app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.
timer$.interface.timer

Trigger 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 models like ChatGPT, DALL-E, and Whisper.

Action

Description:Charge a reusable authorization. [See the documentation](https://paystack.com/docs/api/transaction/#charge-authorization)
Version:0.0.2
Key:paystack-charge-authorization

Paystack Overview

Paystack is a payment gateway that allows businesses to accept payments online from customers. With the Paystack API, you can automate invoicing, verify transactions, manage customers, and more. On Pipedream, you can integrate Paystack with a multitude of other apps to build powerful workflows, such as syncing payment data with accounting software, triggering events based on transaction status, or automating customer outreach.

Action Code

import paystack from "../../paystack.app.mjs";

export default {
  key: "paystack-charge-authorization",
  name: "Charge Authorization",
  description: "Charge a reusable authorization. [See the documentation](https://paystack.com/docs/api/transaction/#charge-authorization)",
  version: "0.0.2",
  type: "action",
  props: {
    paystack,
    email: {
      propDefinition: [
        paystack,
        "email",
      ],
    },
    amount: {
      propDefinition: [
        paystack,
        "amount",
      ],
    },
    authorization_code: {
      propDefinition: [
        paystack,
        "authorization_code",
        (configuredProps) => ({
          customer: configuredProps.email,
        }),
      ],
    },
  },
  async run({ $ }) {
    const response = await this.paystack.chargeAuthorization({
      $,
      data: {
        email: this.email,
        amount: this.amount,
        authorization_code: this.authorization_code,
      },

    });

    $.export("$summary", "Authorization charged");
    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
PaystackpaystackappThis component uses the Paystack app.
EmailemailstringSelect a value from the drop down menu.
Amountamountstring

Amount to charge

Authorization Codeauthorization_codestringSelect a value from the drop down menu.

Action Authentication

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

Navigate to your profile page. Under "Settings", you should see a tab called "API Keys & Webhooks" which contains your secret_key.

About Paystack

Paystack is a Nigerian financial technology company that offers payment processing services to businesses.

More Ways to Connect Paystack + OpenAI (ChatGPT)

Initialize Transaction with Paystack API on New File Created from OpenAI (ChatGPT) API
OpenAI (ChatGPT) + Paystack
 
Try it
Initialize Transaction with Paystack API on New Fine Tuning Job Created from OpenAI (ChatGPT) API
OpenAI (ChatGPT) + Paystack
 
Try it
Initialize Transaction with Paystack API on New Run State Changed from OpenAI (ChatGPT) API
OpenAI (ChatGPT) + Paystack
 
Try it
Fetch Transaction with Paystack API on New File Created from OpenAI (ChatGPT) API
OpenAI (ChatGPT) + Paystack
 
Try it
Fetch Transaction with Paystack API on New Fine Tuning Job Created from OpenAI (ChatGPT) API
OpenAI (ChatGPT) + Paystack
 
Try it
New Batch Completed from the OpenAI (ChatGPT) API

Emit new event when a new batch is completed in OpenAI. See the documentation

 
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
New Run State Changed from the OpenAI (ChatGPT) API

Emit new event every time a run changes its status. See the documentation

 
Try it
Chat with the OpenAI (ChatGPT) API

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

 
Try it
Chat using Web Search with the OpenAI (ChatGPT) API

Chat using the web search tool. See the documentation

 
Try it
Chat using Functions with the OpenAI (ChatGPT) API

Chat with your models and allow them to invoke functions. Optionally, you can build and invoke workflows as functions. See the documentation

 
Try it
Chat using File Search with the OpenAI (ChatGPT) API

Chat with your files knowledge base (vector stores). See the documentation

 
Try it
Summarize Text with the OpenAI (ChatGPT) API

Summarizes text using the Chat API. See the documentation

 
Try it

Explore Other Apps

1
-
0
of
2,700+
apps by most popular