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

# Using the Stripe Action Templates

<Badge icon="arrow-left" color="gray">[Back to Actions Integrations](/ai-for-service/integrations/overview#actions)</Badge>

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**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img2.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=6cf09f3fc90eb6d161ba68e73ec49cea" alt="Integration - Stripe" width="785" height="907" data-path="ai-for-service/integrations/actions/images/stripe-tem-img2.png" />

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

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img3.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=b8b4e766e502eb9c7ce11f1f772a4482" alt="Explore Integrations" width="892" height="906" data-path="ai-for-service/integrations/actions/images/stripe-tem-img3.png" />

***

## 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](/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:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img4.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=fb1b78adffc148603f50dd6b91e8f663" alt="Create a Customer dialog task is added" width="1719" height="895" data-path="ai-for-service/integrations/actions/images/stripe-tem-img4.png" />

   * **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**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img5.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=80f0d05023d741cd4bda3cd191bca85c" alt="Create customer - Edit response" width="1916" height="742" data-path="ai-for-service/integrations/actions/images/stripe-tem-img5.png" />

     **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:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img6.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=fa109290c318c282c7a4f3e4a06b03d2" alt="VA prompt to create customer" width="387" height="682" data-path="ai-for-service/integrations/actions/images/stripe-tem-img6.png" />

***

### List All Customers

1. Install the template from [Stripe Action Templates](/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:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img7.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=290b3a33735e849486e793f4bb3549ed" alt="List All Customers dialog task is added" width="1734" height="724" data-path="ai-for-service/integrations/actions/images/stripe-tem-img7.png" />

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

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

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img8.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=02f109b21af6948ad37de25e3e37091f" alt="List all customers - Edit Request" width="1919" height="842" data-path="ai-for-service/integrations/actions/images/stripe-tem-img8.png" />

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

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

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

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img9.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=4feb3ca2e084f5eb88f139d7250f8604" alt="List all customers - Edit Request" width="495" height="845" data-path="ai-for-service/integrations/actions/images/stripe-tem-img9.png" />

***

### Create an Invoice

1. Install the template from [Stripe Action Templates](/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:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img10.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=a6f1b4b289fddc2314dc3b48d72d70b6" alt="Create an Invoice dialog task is added" width="1722" height="877" data-path="ai-for-service/integrations/actions/images/stripe-tem-img10.png" />

   * **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.

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img11.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=e709bb3ebe4d834dad6d23fc1a514527" alt="createInvoiceScript bot action component properties" width="1917" height="874" data-path="ai-for-service/integrations/actions/images/stripe-tem-img11.png" />

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

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img12.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=f4c26fccbdbc884c32ae998398952256" alt="Create an Invoice - Edit request" width="1919" height="863" data-path="ai-for-service/integrations/actions/images/stripe-tem-img12.png" />

     **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:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img13.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=89a6ac526c20ea58b377da455512462b" alt="VA prompt to create an invoice" width="488" height="844" data-path="ai-for-service/integrations/actions/images/stripe-tem-img13.png" />

***

### List All Invoices

1. Install the template from [Stripe Action Templates](/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:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img14.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=73e479a70a8e465a9b8e62dd9b0fb5a1" alt="List All Invoices dialog task is added" width="1731" height="731" data-path="ai-for-service/integrations/actions/images/stripe-tem-img14.png" />

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

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

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img15.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=7d763dadafe1afac98eaf6cc12c81a6d" alt="List All Invoices - Add response" width="1917" height="846" data-path="ai-for-service/integrations/actions/images/stripe-tem-img15.png" />

   * **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](/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:

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img16.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=3022252e64f26c7a55c2eb0d47aa507b" alt="Create a Payment Intent dialog task is added" width="1727" height="880" data-path="ai-for-service/integrations/actions/images/stripe-tem-img16.png" />

   * **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**:

     <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img17.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=4f372a79164bdad1ae827c0b3b3eb447" alt="Create a Payment Intent - Edit request" width="1905" height="847" data-path="ai-for-service/integrations/actions/images/stripe-tem-img17.png" />

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

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

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/w5x60feX4YkI2j9d/ai-for-service/integrations/actions/images/stripe-tem-img18.png?fit=max&auto=format&n=w5x60feX4YkI2j9d&q=85&s=1e79c8a420d0f8ac5a3ec5c1f347e363" alt="VA prompt to Create a Payment Intent" width="490" height="848" data-path="ai-for-service/integrations/actions/images/stripe-tem-img18.png" />
