はじめに
対話型AIプラットフォーム
チャットボットの概要
自然言語処理(NLP)
ボットの概念と用語
クイックスタートガイド
プラットフォームへのアクセス
ボットビルダーの操作
リリースノート
最新バージョン(英語)
以前のバージョン(英語)
廃止機能(英語)
コンセプト
設計
ストーリーボード
ダイアログタスク
ダイアログタスクとは
ダイアログビルダー
ノードタイプ
インテントノード
ダイアログノード
エンティティノード
フォームノード
確認ノード
ロジックノード
ボットアクションノード
サービスノード
Webhookノード
スクリプトノード
グループノード
エージェント転送ノード
ユーザープロンプト
音声通話プロパティ
イベント ハンドラー
ナレッジグラフ
ナレッジグラフの抽出
ナレッジグラフの構築
ボットにナレッジグラフを追加
グラフの作成
ナレッジグラフの構築
既存のソースからFAQを構築
特性、同義語、停止用語
変数ネームスペースの管理
更新
ノード間の質問と回答の移動
用語の編集と削除
質問と応答の編集
ナレッジグラフの分析
通知タスク
スモールトーク
デジタルスキル
デジタルフォーム
デジタルビュー
デジタルビューとは
パネル
ウィジェット
トレーニング
トレーニングとは
機械学習
機械学習とは
モデル検証
ファンダメンタルミーニング
ナレッジグラフ
示唆
ランキングおよび解決
NLPの詳細設定
NLPのガイドライン
インテリジェンス
インテリジェンスとは
コンテキスト
コンテキストインテント
割り込み
複数インテントの検出
エンティティの変更
デフォルトの会話
センチメント管理
トーン分析
テストとデバッグ
ボットと会話
発話テスト
バッチテスト
会話テスト
デプロイ
チャネル
公開
分析
ボットの分析
NLPメトリクス
会話フロー
Usage Metrics
封じ込め測定
カスタムダッシュボード
カスタムダッシュボードとは
メタタグ
カスタムダッシュボードとウィジェット
ユニバーサルボット
ユニバーサルボットとは
ユニバーサルボットの定義
ユニバーサルボットの作成
ユニバーサルボットのトレーニング
ユニバーサルボットのカスタマイズ
他言語の有効化
ストア
プラントと使用
Overview
Usage Plans
Support Plans
Invoices
管理
ボット認証
複数言語対応ボット
個人を特定できる情報の編集
ボット変数の使用
IVRのシステム連携
一般設定
ボット管理
ハウツー
会話スキルの設計
バンキングボットを作成
バンキングボット – 資金の振り替え
バンキングボット – 残高を更新
ナレッジグラフを構築
スマートアラートの予約方法
デジタルスキルの設計
デジタルフォームの設定方法
デジタルビューの設定方法
データテーブルのデータの追加方法
データテーブルのデータの更新方法
Add Data from Digital Forms
ボットのトレーニング
示唆の使用方法
インテントとエンティティのパターンの使用方法
コンテキスト切り替えの管理方法
ボットのデプロイ
エージェント転送の設定方法
ボット関数の使用方法
コンテンツ変数の使用方法
グローバル変数の使用方法
Web SDK Tutorial(英語)
Widget SDK Tutorial(英語)
ボットの分析
カスタムダッシュボードの作成方法
カスタムタグを使ってフィルタリング
管理
ボット管理者コンソール
ダッシュボード
ユーザーの管理
ユーザーの管理
グループの管理
ロール管理
ボット管理モジュール
登録
ユーザーの招待
招待状の一括送信
ユーザーデータのインポート
Active Directoryからユーザーを同期
セキュリティ/コンプライアンス
シングル サインオンの使用
セキュリティ設定
Billing(日本未対応)
  1. ホーム
  2. Integrations
  3. Using the Stripe Action Templates

Using the Stripe Action Templates

You can use the Prebuilt Action Templates from your Stripe integration to auto-create dialog tasks and test them using the Talk to Bot option.

Steps to create a dialog task using the Stripe action templates:

  1. Go to Build > Conversation Skills > Dialog Tasks.
  2. Click Create a Dialog Task.
  3. On the Dialog Task pop-up, under the Integration, select the Stripe option to view the action templates.
  4. If you have not configured any integration for your virtual assistant, you will see the Explore Integrations option. Once you click this option, you will be redirected to the Actions page to configure an integration for your VA. For more information, see Actions Overview.

Stripe Actions

The following Stripe actions are supported in this release:

Supported Tasks 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 Create a new invoice in the system. POST
List all invoices Retrieves all invoices in the Stripe system. GET
Create a payment intent Create a payment intent in the Stripe system. POST

Create a Customer

Steps to create a customer in the Stripe integration:

  1. Refer to the Installing the Stripe templates section to install this template.
  2. The Create a Customer dialog task is added with the following components:
    • createCustomer – A user intent to create a customer.
    • name, email, and phone – Entity nodes for gathering the required customer details.
    • createCustomerService – A bot action service to create a customer in an external integration. Click the Plus icon to expand to view the createCustomerService bot action component properties.
    • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      Sample Request:

      Key Value
      name
      Alan Walker
      phone
      774499847x
      email
      abc@xyz.com
      }


      To add one or more responses, scroll down and click the +Add Response button:
      Sample Response:

      {
      "id": "cus_N42Fu5I7t3dDyu",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1672212940,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "abc@xyz.com",
      "invoice_prefix": "44E40F14",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "Alan Walker",
      "next_invoice_sequence": 1,
      "phone": "7000028162",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      }

    • createCustomerMessage – A message node with the script to display responses for various scenarios.
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to create a customer as shown below:

List All Customers

Steps to view all customers in the Stripe integration:

  1. Refer to the Installing the Stripe templates section to install this template.
  2. The List All Customers dialog task is added with the following components:
    • listAllCustomers – A user intent to view all customers.
    • listAllCustomersService – A bot action service to fetch all customer from an external integration. Click the Plus icon to expand to view the listAllCustomersService bot action component properties.
    • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      To add one or more responses, scroll down and click the +Add Response button:
      Sample Response:

      {
      "object": "list",
      "data": [
      {
      "id": "cus_N42Fu5I7t3dDyu",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1672212940,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "abc@xyz.com",
      "invoice_prefix": "44E40F14",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "John Doe",
      "next_invoice_sequence": 1,
      "phone": "7000028162",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_N42AIrFfWwxMgE",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1672212630,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": null,
      "invoice_prefix": "8C233FEC",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": null,
      "next_invoice_sequence": 1,
      "phone": "7000028162",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoehoTNKYRVe26",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668665764,
      "currency": "inr",
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "fvs@iv.com",
      "invoice_prefix": "8DCEDA60",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "sifjsv",
      "next_invoice_sequence": 2,
      "phone": "1234567890",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoPMlg13KszYN3",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668608684,
      "currency": "inr",
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "sofh@su.com",
      "invoice_prefix": "0B2EEB5D",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "osuhs",
      "next_invoice_sequence": 2,
      "phone": "1234567890",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoPC8gvKMlx7dm",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668608083,
      "currency": "inr",
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "fs@g.com",
      "invoice_prefix": "4592BEDC",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "Afaf",
      "next_invoice_sequence": 2,
      "phone": "1234567890",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoOz7609WhikjI",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668607304,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "dfuu@affs.com",
      "invoice_prefix": "25CD7994",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "Kevin Smith",
      "next_invoice_sequence": 1,
      "phone": "9090909089",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoLarncjII6Ysw",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668594673,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "aoic@iaad.com",
      "invoice_prefix": "E935E75F",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "addufad",
      "next_invoice_sequence": 1,
      "phone": "1234567890",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoLVfPuvfbkqtd",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668594346,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": null,
      "invoice_prefix": "71DA22EF",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "Michael John",
      "next_invoice_sequence": 1,
      "phone": null,
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      }
      ],
      "has_more": true,
      "url": "/v1/customers"
      }
    • listAllCustomersMessage – A message node with the script to display responses for various scenarios.
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to view all customers as shown below:

Create an Invoice

Steps to create an invoice in the Stripe integration:

  1. Refer to the Installing the Stripe templates section to install this template.
  2. The Create an Invoice dialog task is added with the following components:
    • createInvoice – A user intent to create an invoice.
    • name, email, phone, dueDate, productName, productQuantity, and unitAmount – Entity nodes for gathering the required invoice details.
    • createInvoiceScript – A bot action service to create an invoice in an external integration. Click the Plus icon to expand to view the createInvoiceScript bot action component properties.
    • createInvoiceService – A bot action service to create an invoice in an external integration. Click the Plus icon to expand to view the createInvoiceService bot action component properties.
    • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      Sample Request:

      {
      customer
      cus_N42Fu5I7t3dDyu
      collection_method
      send_invoice
      due_date
      1704067199
      }

    • createInvoiceItemService – A bot action service to create an invoice item in an external integration.
    • createInvoiceMessage – A message node with the script to display responses for various scenarios.
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to create an invoice as shown below:

List All Invoices

Steps to fetch all invoices from the Stripe integration:

  1. Refer to the Installing the Stripe templates section to install this template.
  2. The List All Invoices dialog task is added with the following components:
    • listAllInvoices – A user intent to list all invoices.
    • listAllInvoicesService – A bot action service to fetch all invoices in an external integration. Click the Plus icon to expand to view the listAllInvoicesService bot action component properties.
    • In the Component Properties window, to add one or more responses, scroll down and click +Add Response as shown below:

      Sample Response:

      [
      "object": "list",
      "data": [
      {
      "id": "in_1MJuQrSFoZeLxu29Hpot60d2",
      "object": "invoice",
      "account_country": "IN",
      "account_name": "Kore",
      "account_tax_ids": null,
      "amount_due": 0,
      "amount_paid": 0,
      "amount_remaining": 0,
      "application": null,
      "application_fee_amount": null,
      "attempt_count": 0,
      "attempted": false,
      "auto_advance": false,
      "automatic_tax": {
      "enabled": false,
      "status": null
      },
      "billing_reason": "manual",
      "charge": null,
      "collection_method": "send_invoice",
      "created": 1672213933,
      "currency": "inr",
      "custom_fields": null,
      "customer": "cus_N42Fu5I7t3dDyu",
      "customer_address": null,
      "customer_email": "abc@xyz.com",
      "customer_name": "Tanmay Agrawal",
      "customer_phone": "7000028162",
      "customer_shipping": null,
      "customer_tax_exempt": "none",
      "customer_tax_ids": [],
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [],
      "description": null,
      "discount": null,
      "discounts": [],
      "due_date": 1704067199,
      "ending_balance": null,
      "footer": null,
      "from_invoice": null,
      "hosted_invoice_url": null,
      "invoice_pdf": null,
      "last_finalization_error": null,
      "latest_revision": null,
      "lines": {
      "object": "list",
      "data": [],
      "has_more": false,
      "total_count": 0,
      "url": "/v1/invoices/in_1MJuQrSFoZeLxu29Hpot60d2/lines"
      },
      "livemode": false,
      "metadata": {},
      "next_payment_attempt": null,
      "number": null,
      "on_behalf_of": null,
      "paid": false,
      "paid_out_of_band": false,
      "payment_intent": null,
      "payment_settings": {
      "default_mandate": null,
      "payment_method_options": null,
      "payment_method_types": null
      },
      "period_end": 1672213933,
      "period_start": 1672213933,
      "post_payment_credit_notes_amount": 0,
      "pre_payment_credit_notes_amount": 0,
      "quote": null,
      "receipt_number": null,
      "rendering_options": null,
      "starting_balance": 0,
      "statement_descriptor": null,
      "status": "draft",
      "status_transitions": {
      "finalized_at": null,
      "marked_uncollectible_at": null,
      "paid_at": null,
      "voided_at": null
      },
      "subscription": null,
      "subtotal": 0,
      "subtotal_excluding_tax": 0,
      "tax": null,
      "test_clock": null,
      "total": 0,
      "total_discount_amounts": [],
      "total_excluding_tax": 0,
      "total_tax_amounts": [],
      "transfer_data": null,
      "webhooks_delivered_at": 1672213933
      },
      {
      "id": "in_1M51OLSFoZeLxu29CinEAuPN",
      "object": "invoice",
      "account_country": "IN",
      "account_name": "Kore",
      "account_tax_ids": null,
      "amount_due": 1000000,
      "amount_paid": 0,
      "amount_remaining": 1000000,
      "application": null,
      "application_fee_amount": null,
      "attempt_count": 0,
      "attempted": false,
      "auto_advance": false,
      "automatic_tax": {
      "enabled": false,
      "status": null
      },
      "billing_reason": "manual",
      "charge": null,
      "collection_method": "send_invoice",
      "created": 1668665765,
      "currency": "inr",
      "custom_fields": null,
      "customer": "cus_MoehoTNKYRVe26",
      "customer_address": null,
      "customer_email": "fvs@iv.com",
      "customer_name": "sifjsv",
      "customer_phone": "1234567890",
      "customer_shipping": null,
      "customer_tax_exempt": "none",
      "customer_tax_ids": [],
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [],
      "description": null,
      "discount": null,
      "discounts": [],
      "due_date": 1671692400,
      "ending_balance": 0,
      "footer": null,
      "from_invoice": null,
      "hosted_invoice_url":
      "last_finalization_error": null,
      "latest_revision": null,
      "lines": {
      "object": "list",
      "data": [
      {
      "id": "il_1M51OLSFoZeLxu29AoKrzSrN",
      "object": "line_item",
      "amount": 1000000,
      "amount_excluding_tax": 1000000,
      "currency": "inr",
      "description": "uuttl",
      "discount_amounts": [],
      "discountable": true,
      "discounts": [],
      "invoice_item": "ii_1M51OLSFoZeLxu29JYoVyeY5",
      "livemode": false,
      "metadata": {},
      "period": {
      "end": 1668665765,
      "start": 1668665765
      },
      "plan": null,
      "price": {
      "id": "price_1M51OLSFoZeLxu29NW1RuC8g",
      "object": "price",
      "active": false,
      "billing_scheme": "per_unit",
      "created": 1668665765,
      "currency": "inr",
      "custom_unit_amount": null,
      "livemode": false,
      "lookup_key": null,
      "metadata": {},
      "nickname": null,
      "product": "prod_MoehlWyJkRdwgS",
      "recurring": null,
      "tax_behavior": "unspecified",
      "tiers_mode": null,
      "transform_quantity": null,
      "type": "one_time",
      "unit_amount": 500000,
      "unit_amount_decimal": "500000"
      },
      "proration": false,
      "proration_details": {
      "credited_items": null
      },
      "quantity": 2,
      "subscription": null,
      "tax_amounts": [],
      "tax_rates": [],
      "type": "invoiceitem",
      "unit_amount_excluding_tax": "500000"
      }
      ],
      "has_more": false,
      "total_count": 1,
      "url": "/v1/invoices/in_1M51OLSFoZeLxu29CinEAuPN/lines"
      },
      "livemode": false,
      "metadata": {},
      "next_payment_attempt": null,
      "number": "8DCEDA60-0001",
      "on_behalf_of": null,
      "paid": false,
      "paid_out_of_band": false,
      "payment_intent": "pi_3M51ONSFoZeLxu290bGHhjsQ",
      "payment_settings": {
      "default_mandate": null,
      "payment_method_options": null,
      "payment_method_types": null
      },
      "period_end": 1668665765,
      "period_start": 1668665765,
      "post_payment_credit_notes_amount": 0,
      "pre_payment_credit_notes_amount": 0,
      "quote": null,
      "receipt_number": null,
      "rendering_options": null,
      "starting_balance": 0,
      "statement_descriptor": null,
      "status": "open",
      "status_transitions": {
      "finalized_at": 1668665766,
      "marked_uncollectible_at": null,
      "paid_at": null,
      "voided_at": null
      },
      "subscription": null,
      "subtotal": 1000000,
      "subtotal_excluding_tax": 1000000,
      "tax": null,
      "test_clock": null,
      "total": 1000000,
      "total_discount_amounts": [],
      "total_excluding_tax": 1000000,
      "total_tax_amounts": [],
      "transfer_data": null,
      "webhooks_delivered_at": 1668665765
      },
      {
      "id": "in_1M4mO0SFoZeLxu29DKFkhfsO",
      "object": "invoice",
      "account_country": "IN",
      "account_name": "Kore",
      "account_tax_ids": null,
      "amount_due": 50000000,
      "amount_paid": 0,
      "amount_remaining": 50000000,
      "application": null,
      "application_fee_amount": null,
      "attempt_count": 0,
      "attempted": false,
      "auto_advance": false,
      "automatic_tax": {
      "enabled": false,
      "status": null
      },
      "billing_reason": "manual",
      "charge": null,
      "collection_method": "send_invoice",
      "created": 1668608084,
      "currency": "inr",
      "custom_fields": null,
      "customer": "cus_MoPC8gvKMlx7dm",
      "customer_address": null,
      "customer_email": "fs@g.com",
      "customer_name": "Afaf",
      "customer_phone": "1234567890",
      "customer_shipping": null,
      "customer_tax_exempt": "none",
      "customer_tax_ids": [],
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [],
      "description": null,
      "discount": null,
      "discounts": [],
      "due_date": 1669438800,
      "ending_balance": 0,
      "footer": null,
      "from_invoice": null,
      "hosted_invoice_url":
      "last_finalization_error": null,
      "latest_revision": null,
      "lines": {
      "object": "list",
      "data": [
      {
      "id": "il_1M4mO1SFoZeLxu29VCaYVgXy",
      "object": "line_item",
      "amount": 50000000,
      "amount_excluding_tax": 50000000,
      "currency": "inr",
      "description": "Car",
      "discount_amounts": [],
      "discountable": true,
      "discounts": [],
      "invoice_item": "ii_1M4mO1SFoZeLxu2945Hl3pAW",
      "livemode": false,
      "metadata": {},
      "period": {
      "end": 1668608085,
      "start": 1668608085
      },
      "plan": null,
      "price": {
      "id": "price_1M4mO1SFoZeLxu29RJHNzS1O",
      "object": "price",
      "active": false,
      "billing_scheme": "per_unit",
      "created": 1668608085,
      "currency": "inr",
      "custom_unit_amount": null,
      "livemode": false,
      "lookup_key": null,
      "metadata": {},
      "nickname": null,
      "product": "prod_MoPCjtWBmV0OYn",
      "recurring": null,
      "tax_behavior": "unspecified",
      "tiers_mode": null,
      "transform_quantity": null,
      "type": "one_time",
      "unit_amount": 50000000,
      "unit_amount_decimal": "50000000"
      },
      "proration": false,
      "proration_details": {
      "credited_items": null
      },
      "quantity": 1,
      "subscription": null,
      "tax_amounts": [],
      "tax_rates": [],
      "type": "invoiceitem",
      "unit_amount_excluding_tax": "50000000"
      }
      ],
      "has_more": false,
      "total_count": 1,
      "url": "/v1/invoices/in_1M4mO0SFoZeLxu29DKFkhfsO/lines"
      },
      "livemode": false,
      "metadata": {},
      "next_payment_attempt": null,
      "number": "4592BEDC-0001",
      "on_behalf_of": null,
      "paid": false,
      "paid_out_of_band": false,
      "payment_intent": "pi_3M4mO2SFoZeLxu290TwK43Vu",
      "payment_settings": {
      "default_mandate": null,
      "payment_method_options": null,
      "payment_method_types": null
      },
      "period_end": 1668608084,
      "period_start": 1668608084,
      "post_payment_credit_notes_amount": 0,
      "pre_payment_credit_notes_amount": 0,
      "quote": null,
      "receipt_number": null,
      "rendering_options": null,
      "starting_balance": 0,
      "statement_descriptor": null,
      "status": "open",
      "status_transitions": {
      "finalized_at": 1668608086,
      "marked_uncollectible_at": null,
      "paid_at": null,
      "voided_at": null
      },
      "subscription": null,
      "subtotal": 50000000,
      "subtotal_excluding_tax": 50000000,
      "tax": null,
      "test_clock": null,
      "total": 50000000,
      "total_discount_amounts": [],
      "total_excluding_tax": 50000000,
      "total_tax_amounts": [],
      "transfer_data": null,
      "webhooks_delivered_at": 1668608084
      },
      {
      "id": "in_1LuVm9SFoZeLxu29NdxJebPB",
      "object": "invoice",
      "account_country": "IN",
      "account_name": "Kore",
      "account_tax_ids": null,
      "amount_due": 3559110,
      "amount_paid": 0,
      "amount_remaining": 3559110,
      "application": null,
      "application_fee_amount": null,
      "attempt_count": 0,
      "attempted": false,
      "auto_advance": false,
      "automatic_tax": {
      "enabled": false,
      "status": null
      },
      "billing_reason": "manual",
      "charge": null,
      "collection_method": "send_invoice",
      "created": 1666160953,
      "currency": "inr",
      "custom_fields": null,
      "customer": "cus_MbY9Ce4b1x2QD6",
      "customer_address": null,
      "customer_email": "trag.24.04@gmail.com",
      "customer_name": "Tanmay Agrawal",
      "customer_phone": "7000028161",
      "customer_shipping": null,
      "customer_tax_exempt": "none",
      "customer_tax_ids": [],
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [],
      "description": null,
      "discount": null,
      "discounts": [],
      "due_date": 1668105000,
      "ending_balance": null,
      "footer": null,
      "from_invoice": null,
      "hosted_invoice_url": null,
      "invoice_pdf": null,
      "last_finalization_error": null,
      "latest_revision": null,
      "lines": {
      "object": "list",
      "data": [
      {
      "id": "il_1LuVndSFoZeLxu29l7AgoRlj",
      "object": "line_item",
      "amount": 3555555,
      "amount_excluding_tax": 3555555,
      "currency": "inr",
      "description": "sfsf",
      "discount_amounts": [],
      "discountable": true,
      "discounts": [],
      "invoice_item": "ii_1LuVndSFoZeLxu29fwQOCvru",
      "livemode": false,
      "metadata": {},
      "period": {
      "end": 1666161045,
      "start": 1666161045
      },
      "plan": null,
      "price": {
      "id": "price_1LuVnSSFoZeLxu29PJBUQR5N",
      "object": "price",
      "active": false,
      "billing_scheme": "per_unit",
      "created": 1666161034,
      "currency": "inr",
      "custom_unit_amount": null,
      "livemode": false,
      "lookup_key": null,
      "metadata": {},
      "nickname": null,
      "product": "prod_MdnOtDUTW3XRdu",
      "recurring": null,
      "tax_behavior": "unspecified",
      "tiers_mode": null,
      "transform_quantity": null,
      "type": "one_time",
      "unit_amount": 1,
      "unit_amount_decimal": "1"
      },
      "proration": false,
      "proration_details": {
      "credited_items": null
      },
      "quantity": 3555555,
      "subscription": null,
      "tax_amounts": [],
      "tax_rates": [],
      "type": "invoiceitem",
      "unit_amount_excluding_tax": "1"
      },
      {
      "id": "in_1LuVl5SFoZeLxu293cqXtIjc",
      "object": "invoice",
      "account_country": "IN",
      "account_name": "Kore",
      "account_tax_ids": null,
      "amount_due": 0,
      "amount_paid": 0,
      "amount_remaining": 0,
      "application": null,
      "application_fee_amount": null,
      "attempt_count": 0,
      "attempted": false,
      "auto_advance": false,
      "automatic_tax": {
      "enabled": false,
      "status": null
      },
      "billing_reason": "manual",
      "charge": null,
      "collection_method": "send_invoice",
      "created": 1666160887,
      "currency": "inr",
      "custom_fields": null,
      "customer": "cus_MbY9Ce4b1x2QD6",
      "customer_address": null,
      "customer_email": "trag.24.04@gmail.com",
      "customer_name": "Tanmay Agrawal",
      "customer_phone": "7000028161",
      "customer_shipping": null,
      "customer_tax_exempt": "none",
      "customer_tax_ids": [],
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [],
      "description": null,
      "discount": null,
      "discounts": [],
      "due_date": 1668105000,
      "ending_balance": null,
      "footer": null,
      "from_invoice": null,
      "hosted_invoice_url": null,
      "invoice_pdf": null,
      "last_finalization_error": null,
      "latest_revision": null,
      "lines": {
      "object": "list",
      "data": [],
      "has_more": false,
      "total_count": 0,
      "url": "/v1/invoices/in_1LuVl5SFoZeLxu293cqXtIjc/lines"
      },
      "livemode": false,
      "metadata": {},
      "next_payment_attempt": null,
      "number": null,
      "on_behalf_of": null,
      "paid": false,
      "paid_out_of_band": false,
      "payment_intent": null,
      "payment_settings": {
      "default_mandate": null,
      "payment_method_options": null,
      "payment_method_types": null
      },
      "period_end": 1666160887,
      "period_start": 1666160887,
      "post_payment_credit_notes_amount": 0,
      "pre_payment_credit_notes_amount": 0,
      "quote": null,
      "receipt_number": null,
      "rendering_options": null,
      "starting_balance": 0,
      "statement_descriptor": null,
      "status": "draft",
      "status_transitions": {
      "finalized_at": null,
      "marked_uncollectible_at": null,
      "paid_at": null,
      "voided_at": null
      },
      "subscription": null,
      "subtotal": 0,
      "subtotal_excluding_tax": 0,
      "tax": null,
      "test_clock": null,
      "total": 0,
      "total_discount_amounts": [],
      "total_excluding_tax": 0,
      "total_tax_amounts": [],
      "transfer_data": null,
      "webhooks_delivered_at": 1666160887
      },
      ],
      "has_more": true,
      "url": "/v1/invoices"
      }
      }
      ]

    • listAllInvoicesMessage – A message node with script to display responses for various scenarios.
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to view all invoices.

Create a Payment Intent

Steps to create a payment intent in the Stripe integration:

  1. Refer to the Installing the Stripe templates section to install this template.
  2. The Create a Payment Intent dialog task is added with the following components:
    • createPaymentIntent – A user intent to make payments.
    • currency, amount, and customer – Entity nodes for gathering the required payment details.
    • createPaymentIntentService – A bot action service to make payments in an external integration. Click the Plus icon to expand to view the createPaymentIntentService bot action component properties.
    • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:
    • createPaymentIntentMessage – A message node with the script to display responses for various scenarios.
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to create payment intents as shown below:

Using the Stripe Action Templates

You can use the Prebuilt Action Templates from your Stripe integration to auto-create dialog tasks and test them using the Talk to Bot option.

Steps to create a dialog task using the Stripe action templates:

  1. Go to Build > Conversation Skills > Dialog Tasks.
  2. Click Create a Dialog Task.
  3. On the Dialog Task pop-up, under the Integration, select the Stripe option to view the action templates.
  4. If you have not configured any integration for your virtual assistant, you will see the Explore Integrations option. Once you click this option, you will be redirected to the Actions page to configure an integration for your VA. For more information, see Actions Overview.

Stripe Actions

The following Stripe actions are supported in this release:

Supported Tasks 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 Create a new invoice in the system. POST
List all invoices Retrieves all invoices in the Stripe system. GET
Create a payment intent Create a payment intent in the Stripe system. POST

Create a Customer

Steps to create a customer in the Stripe integration:

  1. Refer to the Installing the Stripe templates section to install this template.
  2. The Create a Customer dialog task is added with the following components:
    • createCustomer – A user intent to create a customer.
    • name, email, and phone – Entity nodes for gathering the required customer details.
    • createCustomerService – A bot action service to create a customer in an external integration. Click the Plus icon to expand to view the createCustomerService bot action component properties.
    • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      Sample Request:

      Key Value
      name
      Alan Walker
      phone
      774499847x
      email
      abc@xyz.com
      }


      To add one or more responses, scroll down and click the +Add Response button:
      Sample Response:

      {
      "id": "cus_N42Fu5I7t3dDyu",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1672212940,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "abc@xyz.com",
      "invoice_prefix": "44E40F14",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "Alan Walker",
      "next_invoice_sequence": 1,
      "phone": "7000028162",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      }

    • createCustomerMessage – A message node with the script to display responses for various scenarios.
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to create a customer as shown below:

List All Customers

Steps to view all customers in the Stripe integration:

  1. Refer to the Installing the Stripe templates section to install this template.
  2. The List All Customers dialog task is added with the following components:
    • listAllCustomers – A user intent to view all customers.
    • listAllCustomersService – A bot action service to fetch all customer from an external integration. Click the Plus icon to expand to view the listAllCustomersService bot action component properties.
    • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      To add one or more responses, scroll down and click the +Add Response button:
      Sample Response:

      {
      "object": "list",
      "data": [
      {
      "id": "cus_N42Fu5I7t3dDyu",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1672212940,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "abc@xyz.com",
      "invoice_prefix": "44E40F14",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "John Doe",
      "next_invoice_sequence": 1,
      "phone": "7000028162",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_N42AIrFfWwxMgE",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1672212630,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": null,
      "invoice_prefix": "8C233FEC",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": null,
      "next_invoice_sequence": 1,
      "phone": "7000028162",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoehoTNKYRVe26",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668665764,
      "currency": "inr",
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "fvs@iv.com",
      "invoice_prefix": "8DCEDA60",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "sifjsv",
      "next_invoice_sequence": 2,
      "phone": "1234567890",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoPMlg13KszYN3",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668608684,
      "currency": "inr",
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "sofh@su.com",
      "invoice_prefix": "0B2EEB5D",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "osuhs",
      "next_invoice_sequence": 2,
      "phone": "1234567890",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoPC8gvKMlx7dm",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668608083,
      "currency": "inr",
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "fs@g.com",
      "invoice_prefix": "4592BEDC",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "Afaf",
      "next_invoice_sequence": 2,
      "phone": "1234567890",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoOz7609WhikjI",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668607304,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "dfuu@affs.com",
      "invoice_prefix": "25CD7994",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "Kevin Smith",
      "next_invoice_sequence": 1,
      "phone": "9090909089",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoLarncjII6Ysw",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668594673,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": "aoic@iaad.com",
      "invoice_prefix": "E935E75F",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "addufad",
      "next_invoice_sequence": 1,
      "phone": "1234567890",
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      },
      {
      "id": "cus_MoLVfPuvfbkqtd",
      "object": "customer",
      "address": null,
      "balance": 0,
      "created": 1668594346,
      "currency": null,
      "default_source": null,
      "delinquent": false,
      "description": null,
      "discount": null,
      "email": null,
      "invoice_prefix": "71DA22EF",
      "invoice_settings": {
      "custom_fields": null,
      "default_payment_method": null,
      "footer": null,
      "rendering_options": null
      },
      "livemode": false,
      "metadata": {},
      "name": "Michael John",
      "next_invoice_sequence": 1,
      "phone": null,
      "preferred_locales": [],
      "shipping": null,
      "tax_exempt": "none",
      "test_clock": null
      }
      ],
      "has_more": true,
      "url": "/v1/customers"
      }
    • listAllCustomersMessage – A message node with the script to display responses for various scenarios.
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to view all customers as shown below:

Create an Invoice

Steps to create an invoice in the Stripe integration:

  1. Refer to the Installing the Stripe templates section to install this template.
  2. The Create an Invoice dialog task is added with the following components:
    • createInvoice – A user intent to create an invoice.
    • name, email, phone, dueDate, productName, productQuantity, and unitAmount – Entity nodes for gathering the required invoice details.
    • createInvoiceScript – A bot action service to create an invoice in an external integration. Click the Plus icon to expand to view the createInvoiceScript bot action component properties.
    • createInvoiceService – A bot action service to create an invoice in an external integration. Click the Plus icon to expand to view the createInvoiceService bot action component properties.
    • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      Sample Request:

      {
      customer
      cus_N42Fu5I7t3dDyu
      collection_method
      send_invoice
      due_date
      1704067199
      }

    • createInvoiceItemService – A bot action service to create an invoice item in an external integration.
    • createInvoiceMessage – A message node with the script to display responses for various scenarios.
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to create an invoice as shown below:

List All Invoices

Steps to fetch all invoices from the Stripe integration:

  1. Refer to the Installing the Stripe templates section to install this template.
  2. The List All Invoices dialog task is added with the following components:
    • listAllInvoices – A user intent to list all invoices.
    • listAllInvoicesService – A bot action service to fetch all invoices in an external integration. Click the Plus icon to expand to view the listAllInvoicesService bot action component properties.
    • In the Component Properties window, to add one or more responses, scroll down and click +Add Response as shown below:

      Sample Response:

      [
      "object": "list",
      "data": [
      {
      "id": "in_1MJuQrSFoZeLxu29Hpot60d2",
      "object": "invoice",
      "account_country": "IN",
      "account_name": "Kore",
      "account_tax_ids": null,
      "amount_due": 0,
      "amount_paid": 0,
      "amount_remaining": 0,
      "application": null,
      "application_fee_amount": null,
      "attempt_count": 0,
      "attempted": false,
      "auto_advance": false,
      "automatic_tax": {
      "enabled": false,
      "status": null
      },
      "billing_reason": "manual",
      "charge": null,
      "collection_method": "send_invoice",
      "created": 1672213933,
      "currency": "inr",
      "custom_fields": null,
      "customer": "cus_N42Fu5I7t3dDyu",
      "customer_address": null,
      "customer_email": "abc@xyz.com",
      "customer_name": "Tanmay Agrawal",
      "customer_phone": "7000028162",
      "customer_shipping": null,
      "customer_tax_exempt": "none",
      "customer_tax_ids": [],
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [],
      "description": null,
      "discount": null,
      "discounts": [],
      "due_date": 1704067199,
      "ending_balance": null,
      "footer": null,
      "from_invoice": null,
      "hosted_invoice_url": null,
      "invoice_pdf": null,
      "last_finalization_error": null,
      "latest_revision": null,
      "lines": {
      "object": "list",
      "data": [],
      "has_more": false,
      "total_count": 0,
      "url": "/v1/invoices/in_1MJuQrSFoZeLxu29Hpot60d2/lines"
      },
      "livemode": false,
      "metadata": {},
      "next_payment_attempt": null,
      "number": null,
      "on_behalf_of": null,
      "paid": false,
      "paid_out_of_band": false,
      "payment_intent": null,
      "payment_settings": {
      "default_mandate": null,
      "payment_method_options": null,
      "payment_method_types": null
      },
      "period_end": 1672213933,
      "period_start": 1672213933,
      "post_payment_credit_notes_amount": 0,
      "pre_payment_credit_notes_amount": 0,
      "quote": null,
      "receipt_number": null,
      "rendering_options": null,
      "starting_balance": 0,
      "statement_descriptor": null,
      "status": "draft",
      "status_transitions": {
      "finalized_at": null,
      "marked_uncollectible_at": null,
      "paid_at": null,
      "voided_at": null
      },
      "subscription": null,
      "subtotal": 0,
      "subtotal_excluding_tax": 0,
      "tax": null,
      "test_clock": null,
      "total": 0,
      "total_discount_amounts": [],
      "total_excluding_tax": 0,
      "total_tax_amounts": [],
      "transfer_data": null,
      "webhooks_delivered_at": 1672213933
      },
      {
      "id": "in_1M51OLSFoZeLxu29CinEAuPN",
      "object": "invoice",
      "account_country": "IN",
      "account_name": "Kore",
      "account_tax_ids": null,
      "amount_due": 1000000,
      "amount_paid": 0,
      "amount_remaining": 1000000,
      "application": null,
      "application_fee_amount": null,
      "attempt_count": 0,
      "attempted": false,
      "auto_advance": false,
      "automatic_tax": {
      "enabled": false,
      "status": null
      },
      "billing_reason": "manual",
      "charge": null,
      "collection_method": "send_invoice",
      "created": 1668665765,
      "currency": "inr",
      "custom_fields": null,
      "customer": "cus_MoehoTNKYRVe26",
      "customer_address": null,
      "customer_email": "fvs@iv.com",
      "customer_name": "sifjsv",
      "customer_phone": "1234567890",
      "customer_shipping": null,
      "customer_tax_exempt": "none",
      "customer_tax_ids": [],
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [],
      "description": null,
      "discount": null,
      "discounts": [],
      "due_date": 1671692400,
      "ending_balance": 0,
      "footer": null,
      "from_invoice": null,
      "hosted_invoice_url":
      "last_finalization_error": null,
      "latest_revision": null,
      "lines": {
      "object": "list",
      "data": [
      {
      "id": "il_1M51OLSFoZeLxu29AoKrzSrN",
      "object": "line_item",
      "amount": 1000000,
      "amount_excluding_tax": 1000000,
      "currency": "inr",
      "description": "uuttl",
      "discount_amounts": [],
      "discountable": true,
      "discounts": [],
      "invoice_item": "ii_1M51OLSFoZeLxu29JYoVyeY5",
      "livemode": false,
      "metadata": {},
      "period": {
      "end": 1668665765,
      "start": 1668665765
      },
      "plan": null,
      "price": {
      "id": "price_1M51OLSFoZeLxu29NW1RuC8g",
      "object": "price",
      "active": false,
      "billing_scheme": "per_unit",
      "created": 1668665765,
      "currency": "inr",
      "custom_unit_amount": null,
      "livemode": false,
      "lookup_key": null,
      "metadata": {},
      "nickname": null,
      "product": "prod_MoehlWyJkRdwgS",
      "recurring": null,
      "tax_behavior": "unspecified",
      "tiers_mode": null,
      "transform_quantity": null,
      "type": "one_time",
      "unit_amount": 500000,
      "unit_amount_decimal": "500000"
      },
      "proration": false,
      "proration_details": {
      "credited_items": null
      },
      "quantity": 2,
      "subscription": null,
      "tax_amounts": [],
      "tax_rates": [],
      "type": "invoiceitem",
      "unit_amount_excluding_tax": "500000"
      }
      ],
      "has_more": false,
      "total_count": 1,
      "url": "/v1/invoices/in_1M51OLSFoZeLxu29CinEAuPN/lines"
      },
      "livemode": false,
      "metadata": {},
      "next_payment_attempt": null,
      "number": "8DCEDA60-0001",
      "on_behalf_of": null,
      "paid": false,
      "paid_out_of_band": false,
      "payment_intent": "pi_3M51ONSFoZeLxu290bGHhjsQ",
      "payment_settings": {
      "default_mandate": null,
      "payment_method_options": null,
      "payment_method_types": null
      },
      "period_end": 1668665765,
      "period_start": 1668665765,
      "post_payment_credit_notes_amount": 0,
      "pre_payment_credit_notes_amount": 0,
      "quote": null,
      "receipt_number": null,
      "rendering_options": null,
      "starting_balance": 0,
      "statement_descriptor": null,
      "status": "open",
      "status_transitions": {
      "finalized_at": 1668665766,
      "marked_uncollectible_at": null,
      "paid_at": null,
      "voided_at": null
      },
      "subscription": null,
      "subtotal": 1000000,
      "subtotal_excluding_tax": 1000000,
      "tax": null,
      "test_clock": null,
      "total": 1000000,
      "total_discount_amounts": [],
      "total_excluding_tax": 1000000,
      "total_tax_amounts": [],
      "transfer_data": null,
      "webhooks_delivered_at": 1668665765
      },
      {
      "id": "in_1M4mO0SFoZeLxu29DKFkhfsO",
      "object": "invoice",
      "account_country": "IN",
      "account_name": "Kore",
      "account_tax_ids": null,
      "amount_due": 50000000,
      "amount_paid": 0,
      "amount_remaining": 50000000,
      "application": null,
      "application_fee_amount": null,
      "attempt_count": 0,
      "attempted": false,
      "auto_advance": false,
      "automatic_tax": {
      "enabled": false,
      "status": null
      },
      "billing_reason": "manual",
      "charge": null,
      "collection_method": "send_invoice",
      "created": 1668608084,
      "currency": "inr",
      "custom_fields": null,
      "customer": "cus_MoPC8gvKMlx7dm",
      "customer_address": null,
      "customer_email": "fs@g.com",
      "customer_name": "Afaf",
      "customer_phone": "1234567890",
      "customer_shipping": null,
      "customer_tax_exempt": "none",
      "customer_tax_ids": [],
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [],
      "description": null,
      "discount": null,
      "discounts": [],
      "due_date": 1669438800,
      "ending_balance": 0,
      "footer": null,
      "from_invoice": null,
      "hosted_invoice_url":
      "last_finalization_error": null,
      "latest_revision": null,
      "lines": {
      "object": "list",
      "data": [
      {
      "id": "il_1M4mO1SFoZeLxu29VCaYVgXy",
      "object": "line_item",
      "amount": 50000000,
      "amount_excluding_tax": 50000000,
      "currency": "inr",
      "description": "Car",
      "discount_amounts": [],
      "discountable": true,
      "discounts": [],
      "invoice_item": "ii_1M4mO1SFoZeLxu2945Hl3pAW",
      "livemode": false,
      "metadata": {},
      "period": {
      "end": 1668608085,
      "start": 1668608085
      },
      "plan": null,
      "price": {
      "id": "price_1M4mO1SFoZeLxu29RJHNzS1O",
      "object": "price",
      "active": false,
      "billing_scheme": "per_unit",
      "created": 1668608085,
      "currency": "inr",
      "custom_unit_amount": null,
      "livemode": false,
      "lookup_key": null,
      "metadata": {},
      "nickname": null,
      "product": "prod_MoPCjtWBmV0OYn",
      "recurring": null,
      "tax_behavior": "unspecified",
      "tiers_mode": null,
      "transform_quantity": null,
      "type": "one_time",
      "unit_amount": 50000000,
      "unit_amount_decimal": "50000000"
      },
      "proration": false,
      "proration_details": {
      "credited_items": null
      },
      "quantity": 1,
      "subscription": null,
      "tax_amounts": [],
      "tax_rates": [],
      "type": "invoiceitem",
      "unit_amount_excluding_tax": "50000000"
      }
      ],
      "has_more": false,
      "total_count": 1,
      "url": "/v1/invoices/in_1M4mO0SFoZeLxu29DKFkhfsO/lines"
      },
      "livemode": false,
      "metadata": {},
      "next_payment_attempt": null,
      "number": "4592BEDC-0001",
      "on_behalf_of": null,
      "paid": false,
      "paid_out_of_band": false,
      "payment_intent": "pi_3M4mO2SFoZeLxu290TwK43Vu",
      "payment_settings": {
      "default_mandate": null,
      "payment_method_options": null,
      "payment_method_types": null
      },
      "period_end": 1668608084,
      "period_start": 1668608084,
      "post_payment_credit_notes_amount": 0,
      "pre_payment_credit_notes_amount": 0,
      "quote": null,
      "receipt_number": null,
      "rendering_options": null,
      "starting_balance": 0,
      "statement_descriptor": null,
      "status": "open",
      "status_transitions": {
      "finalized_at": 1668608086,
      "marked_uncollectible_at": null,
      "paid_at": null,
      "voided_at": null
      },
      "subscription": null,
      "subtotal": 50000000,
      "subtotal_excluding_tax": 50000000,
      "tax": null,
      "test_clock": null,
      "total": 50000000,
      "total_discount_amounts": [],
      "total_excluding_tax": 50000000,
      "total_tax_amounts": [],
      "transfer_data": null,
      "webhooks_delivered_at": 1668608084
      },
      {
      "id": "in_1LuVm9SFoZeLxu29NdxJebPB",
      "object": "invoice",
      "account_country": "IN",
      "account_name": "Kore",
      "account_tax_ids": null,
      "amount_due": 3559110,
      "amount_paid": 0,
      "amount_remaining": 3559110,
      "application": null,
      "application_fee_amount": null,
      "attempt_count": 0,
      "attempted": false,
      "auto_advance": false,
      "automatic_tax": {
      "enabled": false,
      "status": null
      },
      "billing_reason": "manual",
      "charge": null,
      "collection_method": "send_invoice",
      "created": 1666160953,
      "currency": "inr",
      "custom_fields": null,
      "customer": "cus_MbY9Ce4b1x2QD6",
      "customer_address": null,
      "customer_email": "trag.24.04@gmail.com",
      "customer_name": "Tanmay Agrawal",
      "customer_phone": "7000028161",
      "customer_shipping": null,
      "customer_tax_exempt": "none",
      "customer_tax_ids": [],
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [],
      "description": null,
      "discount": null,
      "discounts": [],
      "due_date": 1668105000,
      "ending_balance": null,
      "footer": null,
      "from_invoice": null,
      "hosted_invoice_url": null,
      "invoice_pdf": null,
      "last_finalization_error": null,
      "latest_revision": null,
      "lines": {
      "object": "list",
      "data": [
      {
      "id": "il_1LuVndSFoZeLxu29l7AgoRlj",
      "object": "line_item",
      "amount": 3555555,
      "amount_excluding_tax": 3555555,
      "currency": "inr",
      "description": "sfsf",
      "discount_amounts": [],
      "discountable": true,
      "discounts": [],
      "invoice_item": "ii_1LuVndSFoZeLxu29fwQOCvru",
      "livemode": false,
      "metadata": {},
      "period": {
      "end": 1666161045,
      "start": 1666161045
      },
      "plan": null,
      "price": {
      "id": "price_1LuVnSSFoZeLxu29PJBUQR5N",
      "object": "price",
      "active": false,
      "billing_scheme": "per_unit",
      "created": 1666161034,
      "currency": "inr",
      "custom_unit_amount": null,
      "livemode": false,
      "lookup_key": null,
      "metadata": {},
      "nickname": null,
      "product": "prod_MdnOtDUTW3XRdu",
      "recurring": null,
      "tax_behavior": "unspecified",
      "tiers_mode": null,
      "transform_quantity": null,
      "type": "one_time",
      "unit_amount": 1,
      "unit_amount_decimal": "1"
      },
      "proration": false,
      "proration_details": {
      "credited_items": null
      },
      "quantity": 3555555,
      "subscription": null,
      "tax_amounts": [],
      "tax_rates": [],
      "type": "invoiceitem",
      "unit_amount_excluding_tax": "1"
      },
      {
      "id": "in_1LuVl5SFoZeLxu293cqXtIjc",
      "object": "invoice",
      "account_country": "IN",
      "account_name": "Kore",
      "account_tax_ids": null,
      "amount_due": 0,
      "amount_paid": 0,
      "amount_remaining": 0,
      "application": null,
      "application_fee_amount": null,
      "attempt_count": 0,
      "attempted": false,
      "auto_advance": false,
      "automatic_tax": {
      "enabled": false,
      "status": null
      },
      "billing_reason": "manual",
      "charge": null,
      "collection_method": "send_invoice",
      "created": 1666160887,
      "currency": "inr",
      "custom_fields": null,
      "customer": "cus_MbY9Ce4b1x2QD6",
      "customer_address": null,
      "customer_email": "trag.24.04@gmail.com",
      "customer_name": "Tanmay Agrawal",
      "customer_phone": "7000028161",
      "customer_shipping": null,
      "customer_tax_exempt": "none",
      "customer_tax_ids": [],
      "default_payment_method": null,
      "default_source": null,
      "default_tax_rates": [],
      "description": null,
      "discount": null,
      "discounts": [],
      "due_date": 1668105000,
      "ending_balance": null,
      "footer": null,
      "from_invoice": null,
      "hosted_invoice_url": null,
      "invoice_pdf": null,
      "last_finalization_error": null,
      "latest_revision": null,
      "lines": {
      "object": "list",
      "data": [],
      "has_more": false,
      "total_count": 0,
      "url": "/v1/invoices/in_1LuVl5SFoZeLxu293cqXtIjc/lines"
      },
      "livemode": false,
      "metadata": {},
      "next_payment_attempt": null,
      "number": null,
      "on_behalf_of": null,
      "paid": false,
      "paid_out_of_band": false,
      "payment_intent": null,
      "payment_settings": {
      "default_mandate": null,
      "payment_method_options": null,
      "payment_method_types": null
      },
      "period_end": 1666160887,
      "period_start": 1666160887,
      "post_payment_credit_notes_amount": 0,
      "pre_payment_credit_notes_amount": 0,
      "quote": null,
      "receipt_number": null,
      "rendering_options": null,
      "starting_balance": 0,
      "statement_descriptor": null,
      "status": "draft",
      "status_transitions": {
      "finalized_at": null,
      "marked_uncollectible_at": null,
      "paid_at": null,
      "voided_at": null
      },
      "subscription": null,
      "subtotal": 0,
      "subtotal_excluding_tax": 0,
      "tax": null,
      "test_clock": null,
      "total": 0,
      "total_discount_amounts": [],
      "total_excluding_tax": 0,
      "total_tax_amounts": [],
      "transfer_data": null,
      "webhooks_delivered_at": 1666160887
      },
      ],
      "has_more": true,
      "url": "/v1/invoices"
      }
      }
      ]

    • listAllInvoicesMessage – A message node with script to display responses for various scenarios.
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to view all invoices.

Create a Payment Intent

Steps to create a payment intent in the Stripe integration:

  1. Refer to the Installing the Stripe templates section to install this template.
  2. The Create a Payment Intent dialog task is added with the following components:
    • createPaymentIntent – A user intent to make payments.
    • currency, amount, and customer – Entity nodes for gathering the required payment details.
    • createPaymentIntentService – A bot action service to make payments in an external integration. Click the Plus icon to expand to view the createPaymentIntentService bot action component properties.
    • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:
    • createPaymentIntentMessage – A message node with the script to display responses for various scenarios.
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to create payment intents as shown below:
メニュー