> For the complete documentation index, see [llms.txt](https://chatlyst.gitbook.io/chatlyst-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chatlyst.gitbook.io/chatlyst-user-guide/settings/e-commerce.md).

# E-commerce

The Chatlyst Commerce feature enables the chatbot to assist customers with shopping-related tasks directly within the chat interface. Once activated, the chatbot can handle automated e-commerce inquiries, suggest items to customers, and provide updates on purchases without requiring a human agent.

#### Important Billing Notice

Before enabling this integration, please note the changes to billing. Activating Chatlyst Commerce will charge **one additional credit** for every message processed by the chatbot.

<div data-with-frame="true"><figure><img src="https://1646628841-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBW7n4ClAhZvbgvusylCd%2Fuploads%2FrFMY6redxKbQ0yr8hwD2%2Fimage.png?alt=media&amp;token=f9329766-4b1d-4da2-8d2e-e7b5612cff59" alt=""><figcaption></figcaption></figure></div>

#### Enabling Chatlyst Commerce

To activate this feature, locate the E-commerce Integration (Chatlyst Commerce) setting and toggle the switch to the On position.

<div data-with-frame="true"><figure><img src="https://1646628841-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBW7n4ClAhZvbgvusylCd%2Fuploads%2FjgCYxwU0fVPXtDNKP4QZ%2Fimage.png?alt=media&amp;token=962f89f1-f012-4b02-b96f-4f4ae04aee8d" alt=""><figcaption><p>Chatlyst Commerce Inactive</p></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://1646628841-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBW7n4ClAhZvbgvusylCd%2Fuploads%2FXx2CJXaIpGupRqsJVYY3%2Fimage.png?alt=media&amp;token=71a92b2a-057d-4e5b-afd2-315e8f89b380" alt=""><figcaption><p>Chatlyst Commerce Active</p></figcaption></figure></div>

#### Understanding the Integration

Connecting an online store to Chatlyst allows the chatbot to retrieve specific data directly from the store's database. By establishing this connection, the chatbot gains access to three key areas of information:

* **Product Data**: The chatbot can access item names, descriptions, and pricing to provide product details to customers.
* **Inventory Data**: The chatbot can check real-time stock levels to accurately inform customers if specific items are currently available or sold out.
* **Order Data**: The chatbot can retrieve fulfillment and shipping statuses, allowing customers to easily track their purchases.

#### Connecting Your Shopline Store

{% stepper %}
{% step %}
To establish a connection between Chatlyst and a Shopline store, two credentials are required:

1. **Store Handle**
2. **API Token**

<div data-with-frame="true"><figure><img src="https://1646628841-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBW7n4ClAhZvbgvusylCd%2Fuploads%2FoFtdguXU3fYBa8z9TvKx%2Fimage.png?alt=media&amp;token=afd2da6a-5287-4cd5-9bd1-c7ca49c58dce" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
Find the Store Handle and API Token from the Shopline platform.

* An in-app guide is positioned directly below the entry fields in Chatlyst to assist with locating these details in Shopline.
* For further guidance, consult the official [Shopline API reference documentation](https://open-api.docs.shoplineapp.com/docs/getting-started).

<div data-with-frame="true"><figure><img src="https://1646628841-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBW7n4ClAhZvbgvusylCd%2Fuploads%2FwD6NpWeQ7YhzehV9MQZR%2Fimage.png?alt=media&amp;token=69ee64fc-3587-4fb7-af95-61062bd27c8c" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

1. Paste the unique store handle into the **Store Handle** field.
2. Paste the generated Admin API Access Token into the **API Token** field.
3. Select the **Save** to apply the settings and complete the integration.

<div data-with-frame="true"><figure><img src="https://1646628841-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBW7n4ClAhZvbgvusylCd%2Fuploads%2FyVqeEsV4MXb3nKdPIAyz%2Fimage.png?alt=media&amp;token=6fcd2f21-d2bb-4dd3-a040-1b1c9e183df9" alt=""><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}
