> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Using the Stripe Action Templates

[Back to Actions Integrations](https://koreai.mintlify.site/ai-for-service/integrations/overview.md#actions)

Use prebuilt Stripe action templates to auto-create dialog tasks for managing customers, invoices, and payments.

**To access templates:**

1. Go to **Automation AI** > **Use Cases** > **Dialogs** and click **Create a Dialog Task**.

2. Under **Integration**, select **Stripe**.

   ![Integration - Stripe](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img2.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=80b535602405353477fcf441e10e3f1a)

3. If no integration is configured, click **Explore Integrations** to set one up. See [Actions Overview](https://koreai.mintlify.site/ai-for-service/integrations/overview.md#actions).

   ![Explore Integrations](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img3.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=daf0cf48faead457a60b0b2ddef3bb33)

***

## Supported Actions

| Task | Description | Method |
| - | - | - |
| Create a Customer | Creates a customer in the Stripe system. | POST |
| List All Customers | Retrieves all customers from the Stripe system. | GET |
| Create Invoice | Creates a new invoice in the system. | POST |
| List All Invoices | Retrieves all invoices in the Stripe system. | GET |
| Create a Payment Intent | Creates a payment intent in the Stripe system. | POST |

***

### Create a Customer

1. Install the template from [Stripe Action Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-stripe-action#step-2-install-the-stripe-action-templates).

2. The **Create a Customer** dialog task is added with the following components:

   ![Create a Customer dialog task is added](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img4.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=77554965bcb860dffb8e30275f05fe74)

   * **createCustomer** - User intent to create a customer.

   * **name**, **email**, **phone** - Entity nodes for customer details.

   * **createCustomerService** - Bot action service to create a customer. Click **Edit Request**:

     ![Create customer - Edit response](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img5.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=ce4a398b7a5c39b5386447b60b22d61b)

     **Sample Response:**

     ```json theme={null}
     {
       "id": "cus_N42Fu5I7t3dDyu",
       "object": "customer",
       "email": "abc@xyz.com",
       "name": "Alan Walker",
       "phone": "7000028162",
       "livemode": false
     }
     ```

   * **createCustomerMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test:

   ![VA prompt to create customer](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img6.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=5be5eeede594c164603de8a31b302c5b)

***

### List All Customers

1. Install the template from [Stripe Action Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-stripe-action#step-2-install-the-stripe-action-templates).

2. The **List All Customers** dialog task is added with the following components:

   ![List All Customers dialog task is added](https://mintcdn.com/koreai/6kNZlFFL7-veA_Xn/ai-for-service/integrations/actions/images/stripe-tem-img7.png?fit=max\&auto=format\&n=6kNZlFFL7-veA_Xn\&q=85\&s=134807302998075b8dec24f041d8f3e8)

   * **listAllCustomers** - User intent to view all customers.

   * **listAllCustomersService** - Bot action service to fetch all customers. Click **Edit Request**:

     ![List all customers - Edit Request](https://mintcdn.com/koreai/6kNZlFFL7-veA_Xn/ai-for-service/integrations/actions/images/stripe-tem-img8.png?fit=max\&auto=format\&n=6kNZlFFL7-veA_Xn\&q=85\&s=bf73d6c3feac8e91c138aac6efb8e8d4)

     Click **+Add Response** for sample responses.

   * **listAllCustomersMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test:

   ![List all customers - Edit Request](https://mintcdn.com/koreai/6kNZlFFL7-veA_Xn/ai-for-service/integrations/actions/images/stripe-tem-img9.png?fit=max\&auto=format\&n=6kNZlFFL7-veA_Xn\&q=85\&s=70646c95f602b14721b6c15112947946)

***

### Create an Invoice

1. Install the template from [Stripe Action Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-stripe-action#step-2-install-the-stripe-action-templates).

2. The **Create an Invoice** dialog task is added with the following components:

   ![Create an Invoice dialog task is added](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img10.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=19f3a314cee2398bff3331807199c233)

   * **createInvoice** - User intent to create an invoice.

   * **name**, **email**, **phone**, **dueDate**, **productName**, **productQuantity**, **unitAmount** - Entity nodes for invoice details.

   * **createInvoiceScript** - Bot action service to prepare invoice data.

     ![createInvoiceScript bot action component properties](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img11.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=247a9b72865581ee12e19a7b26427acc)

   * **createInvoiceService** - Bot action service to create an invoice. Click **Edit Request**:

     ![Create an Invoice - Edit request](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img12.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=8ca22e2f6227b2300941d67ef287e08c)

     **Sample Request:**

     ```
     customer: cus_N42Fu5I7t3dDyu
     collection_method: send_invoice
     due_date: 1704067199
     ```

   * **createInvoiceItemService** - Bot action service to create an invoice item.

   * **createInvoiceMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test:

   ![VA prompt to create an invoice](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img13.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=ac4cb50a8821a36194338376408db20d)

***

### List All Invoices

1. Install the template from [Stripe Action Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-stripe-action#step-2-install-the-stripe-action-templates).

2. The **List All Invoices** dialog task is added with the following components:

   ![List All Invoices dialog task is added](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img14.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=3d8a6522364423fbf85f76954a1e3bbd)

   * **listAllInvoices** - User intent to list all invoices.

   * **listAllInvoicesService** - Bot action service to fetch all invoices. Click **+Add Response**:

     ![List All Invoices - Add response](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img15.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=972f4b8bfc0994f2a1750499b7d695ea)

   * **listAllInvoicesMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test and follow prompts to view all invoices.

***

### Create a Payment Intent

1. Install the template from [Stripe Action Templates](https://koreai.mintlify.site/ai-for-service/integrations/actions/configuring-the-stripe-action#step-2-install-the-stripe-action-templates).

2. The **Create a Payment Intent** dialog task is added with the following components:

   ![Create a Payment Intent dialog task is added](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img16.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=5648961007cadb9c95ef94227393ea8c)

   * **createPaymentIntent** - User intent to make payments.

   * **currency**, **amount**, **customer** - Entity nodes for payment details.

   * **createPaymentIntentService** - Bot action service to create a payment intent. Click **Edit Request**:

     ![Create a Payment Intent - Edit request](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img17.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=c38dccbacbde53d45197172b5f28ea67)

   * **createPaymentIntentMessage** - Message node to display responses.

3. Click **Train**, then **Talk to Bot** to test:

   ![VA prompt to Create a Payment Intent](https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/stripe-tem-img18.png?fit=max\&auto=format\&n=sy5HaLmfjOFkpZKk\&q=85\&s=82d4a17fe0ef01f76895579b3ee521e4)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.