Llama AI

API for Llama and Open-Source Models

Integrate the Llama AI API with the Stripe API

Setup the Llama AI API trigger to run a workflow which integrates with the Stripe API. Pipedream's integration platform allows you to integrate Llama AI and Stripe remarkably fast. Free for developers.

Create Chat with Llama AI API on New Custom Webhook Events from Stripe API
Stripe + Llama AI
 
Try it
Create Chat with Llama AI API on Canceled Subscription from Stripe API
Stripe + Llama AI
 
Try it
Create Chat with Llama AI API on New Abandoned Cart from Stripe API
Stripe + Llama AI
 
Try it
Create Chat with Llama AI API on New Customer from Stripe API
Stripe + Llama AI
 
Try it
Create Chat with Llama AI API on New Dispute from Stripe API
Stripe + Llama AI
 
Try it
New Custom Webhook Events from the Stripe API

Emit new event on each webhook event

 
Try it
Canceled Subscription from the Stripe API

Emit new event for each new canceled subscription

 
Try it
New Abandoned Cart from the Stripe API

Emit new event when a customer abandons their cart.

 
Try it
New Customer from the Stripe API

Emit new event for each new customer

 
Try it
New Dispute from the Stripe API

Emit new event for each new dispute

 
Try it
Create Chat with the Llama AI API

Creates a new chat. See the documentation

 
Try it
Cancel a Payment Intent with the Stripe API

Cancel a payment intent. Once canceled, no additional charges will be made by the payment intent and any operations on the payment intent will fail with an error. For payment intents with status=requires_capture, the remaining amount_capturable will automatically be refunded. See the docs for more information

 
Try it
Cancel Or Reverse a Payout with the Stripe API

Cancel or reverse a payout. A payout can be canceled only if it has not yet been paid out. A payout can be reversed only if it has already been paid out. Funds will be refunded to your available balance. See the docs for more information

 
Try it
Capture a Payment Intent with the Stripe API

Capture the funds of an existing uncaptured payment intent. See the docs for more information

 
Try it
Confirm a Payment Intent with the Stripe API

Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, Stripe will attempt to initiate a payment. See the docs for more information

 
Try it

Overview of Llama AI

The Llama AI API provides powerful machine learning capabilities, enabling users to harness advanced AI for image recognition, natural language processing, and predictive modeling. By leveraging this API on Pipedream, you can automate complex workflows that require AI-driven insights, enhancing data analysis and decision-making processes across various business applications.

Connect Llama AI

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    llama_ai: {
      type: "app",
      app: "llama_ai",
    }
  },
  async run({steps, $}) {
    const data = {
        "messages": [
            {"role": "user", "content": "What is the weather like in Boston?"},
        ],
        "functions": [
            {
                "name": "get_current_weather",
                "description": "Get the current weather in a given location",
                "parameters": {
                    "type": "object",
                    "properties": {
                        "location": {
                            "type": "string",
                            "description": "The city and state, e.g. San Francisco, CA",
                        },
                        "days": {
                            "type": "number",
                            "description": "for how many days ahead you wants the forecast",
                        },
                        "unit": {"type": "string", "enum": ["celsius", "fahrenheit"]},
                    },
                },
                "required": ["location", "days"],
            }
        ],
        "stream": "false",
        "function_call": "get_current_weather",
    }
    return await axios($, {
      method: "post",
      url: `https://api.llama-api.com/chat/completions`,
      headers: {
        Authorization: `Bearer ${this.llama_ai.$auth.api_token}`,
      },
      data,
    })
  },
})

Overview of Stripe

The Stripe API is a powerful tool for managing online payments, subscriptions, and invoices. With Pipedream, you can leverage this API to automate payment processing, monitor transactions, and sync billing data with other services. Pipedream's no-code platform allows for quick integration and creation of serverless workflows that react to Stripe events in real-time. For instance, you might automatically update customer records, send personalized emails after successful payments, or escalate failed transactions to your support team.

Connect Stripe

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import stripe from 'stripe'

export default defineComponent({
  props: {
    stripe: {
      type: "app",
      app: "stripe",
    }
  },
  async run({steps, $}) {
    const client = stripe(this.stripe.$auth.api_key)

    return await client.accounts.list({ limit: 1 })
  },
})