Source: https://stripe.com/
Table of Contents
- Install the Stripe Extension
- Create a Stripe Connection
- Payments within the Webchat
- Check whether the customer is known
- Exposed Flow Nodes
Install the Stripe Extension
The first step is to install the required integration. In this case, a so-called Extension is installed to Cognigy.AI. Thus, navigate to the Extensions Marketplace inside of the Virtual Agent and add the Stripe Extension by clicking on the Install button. Now follow this installation guide and upload the Extension to Cognigy, where it will be displayed as the following:
Congrats! The installation of the Extension is finished!
Create a Stripe Connection
In this step, a so-called Connection will be created. If one, in Cognigy.AI, clicks on the previously uploaded Extension, the following details can be observed:
The red-marked part in the above figure shows, that there is a Connection required. Therefore, it needs to be created and filled with the Stripe instance information. In order to do so, one initial Stripe Flow Node needs to be added to a Flow:
- Create a new Flow in Cognigy.AI
- Inside of the Flow Chart, click on + and navigate to the Stripe Extension:
- For example, add the Get Customer Flow Node by clicking on it:
- In order to edit the Flow Node and create the Connection, please click on it. An Edit Node menu will be opened on the right side of the screen:
- Right next to the Connection field (the first one at the top), one needs to click on the + button. The Connection menu will be opened at the center of the screen:
- Insert the related Salesforce instance credentials/information of the organization to the fields.
- secretKey
- Please navigate to https://dashboard.stripe.com/apikeys and copy the Secret Key:
- Please navigate to https://dashboard.stripe.com/apikeys and copy the Secret Key:
- secretKey
- Click on the Create button
Payments within the Webchat
In order to benefit from traditional chat applications, one could use the Cognigy Webchat for payment actions. Therefore, a so-called Webchat Plugin can be installed and executed during the conversation. In summary, the user can directly provide the required payment information in one input form without answering several questions in a row:
Check whether the customer is known
The already added Flow Node Get Customer can be used at the beginning of the conversation in order to check whether the current user is a customer in Stripe or not. Such as shown in the Flow Node figure above, the result is transferred using both Child Nodes On Found and On Not Found. Based on this result, the person can be greeted with the stored name:
The Stripe Customer ID and Stripe Customer Name are available as Tokens within a Say Node:
The Stripe Customer ID can be used in most of the other Stripe Extension Flow Nodes in order to, for example, get payment methods, get invoices, create a promotion code, get charges, and more.
Exposed Flow Nodes
-
Customer
-
Invoices
-
Orders
-
Products
-
Refunds
-
Promotion
Comments
0 comments