Help Center
Chatbot integrations

Integration with Apilo

Last updated:

Connect your ChatLab chatbot with your Apilo account, where the orders from your shop and marketplaces are handled, so customers can check an order directly in the chat.

Example conversation

See it in a conversation

Check an order

Requires a connected store and its enabled order action. Available fields depend on the integration. Matching an email address is not proof of identity.

ChatLab exampleIllustrative conversation

Visitor: Where is my order?

Play the example or read it below. No real customer data is used.
1 / 5

The customer asks about an existing order.

Playback pauses when this example leaves the screen. This is a simulation, not a live chat. Widget controls inside the playback are not interactive.
Read the complete example
  1. The customer asks about an existing order.

    Visitor: Where is my order?

  2. The default lookup needs both identifiers.

    Assistant: Please give me your order number and the email address used at checkout.

  3. Use fictional data in this example.

    Visitor: 41982, anna@example.com

  4. The action queries the connected store.

    Checking order 41982...

  5. Report only information returned by the store.

    Assistant: Order 41982 is marked as shipped. The carrier is DPD. Please check the tracking page for delivery updates.

The example illustrates the customer experience. The available actions and returned information depend on this integration and your configuration.

Before you start

Create or select a chatbot first. You need permission to manage its integrations and an Apilo user who can create API keys. If the Connect tab does not show the Apilo tile, check that your subscription includes this integration: it is part of every E-commerce plan and of the E-commerce integrations add-on. Keep API credentials private; never paste them into website embed code.

Important: E-Commerce Best Practices

After completing the integration below, read the comprehensive guide on optimizing your chatbot for e-commerce: How to set up ChatLab for your E-commerce store

What the Integration Provides

Order Details - Customers can check an order by providing the order number and the e-mail address used to place it. Both values are required and both must match the order stored in Apilo. The chatbot returns:

  • Order status, as it is named in Apilo or as the message you defined for it
  • Payment state: not paid, partially paid, paid or overpaid
  • Order date and planned shipping dates
  • Ordered products with names, quantities, units and prices
  • Total amount, amount paid and currency
  • Shipping method and shipping cost
  • Carrier and the name of the pickup point or parcel locker
  • Shipments with tracking number, carrier, shipping date and shipment status

The order number is the one the customer received from your sales channel. A wrong e-mail address gets the same answer as an unknown order number, so the chatbot never confirms that an order exists to someone who does not know both values.

The chatbot does not receive the customer name, phone number, delivery address or invoice data. Orders whose customer data is encrypted in Apilo are not returned.

This integration supplies order lookup, not product search. For product search connect your shop platform or an XML product feed.

Step 1: Create an Application in Apilo

  1. Log in to your Apilo account
  2. Open Administration and go to Apilo API keys
  3. Click New application
  4. Apilo shows four values. Keep this page open, you will copy all of them:
  • API address (endpoint) - the address of your Apilo account, for example https://yourcompany.apilo.com
  • Client ID
  • Client Secret
  • Authorization code

The authorization code is valid for 3 hours and can be used only once, so continue with Step 2 right after creating the application.

Step 2: Connect Apilo in ChatLab

  1. Log in to ChatLab and select your bot
  2. Go to the Connect tab
  3. Click Connect on the Apilo tile
  4. Fill in the connection form:
  • API address - the API address (endpoint) shown in Apilo. Only addresses in the apilo.com domain are accepted
  • Client ID - copied from Apilo
  • Client Secret - copied from Apilo
  • Authorization code - the one-time code copied from Apilo
  1. Click Connect

ChatLab exchanges the authorization code for access to your Apilo account as soon as you save the form. If the values are correct, you will see a confirmation message, and the form shows the name of the connected application and the dates until which the access is valid.

If Apilo rejects the data, check the Client ID and Client Secret. When the authorization code has expired or was already used, create a new application in Apilo and paste the new values.

Keeping the Connection Active

ChatLab renews its access to Apilo automatically, so you do not need to repeat the setup.

  • To change the connection to another Apilo application, open the Apilo tile, enter the new API address, Client ID, Client Secret and Authorization code, and click Update Chatbot
  • If Apilo stops accepting the saved connection, for example because the application was removed in Apilo, the form shows a warning. Create a new application in Apilo and enter its four values again
  • Disconnect switches the integration and its action off and removes the saved credentials from ChatLab

Step 3: Configure the Apilo Action

After connecting, navigate to Settings > Actions and filter by the Apilo platform.

One action is available:

  • Apilo - order details - enables the chatbot to look up an order when a customer asks about it

Connection setup enables this action. Open it with Edit to change:

  • When to use this action - the instructions that tell the AI when to check an order
  • Display action label - the message shown to the customer while the order is being checked
  • Advanced Settings > AI Action Definition - what the action does and how the chatbot should present the result
  • Advanced Settings > Rate limiting - the number of order checks allowed in one conversation. It is switched on by default with 5 attempts

Click Update to save.

Your Own Messages for Order Statuses

Apilo accounts often use internal status names that should not be shown to customers. In AI Action Definition you can tell the chatbot which message to give for each status name. Group the statuses that mean the same thing for the customer, for example:

Never show the customer the Apilo status name. Find the returned status name in the list below and give the customer the message of its group.

1. Statuses: "New", "Unconfirmed".
Message: The order has been received and is waiting for confirmation.

2. Statuses: "In progress", "Packing".
Message: The order is being prepared for shipping.

3. Statuses: "Shipped", "Parcel on its way".
Message: The order has been shipped and is on its way.

When the status name is not on the list, say that the order is being processed and offer contact with customer service.

Use the exact status names from your Apilo account. The chatbot translates the message into the language of the conversation.

Test the Order Lookup

Open Test & Deploy and ask for the status of a known order using its matching e-mail address. Use only an order you are authorized to access. Confirm that the status, payment state and tracking number match Apilo, then ask about the same order with a different e-mail address and check that the chatbot does not find it. Install the widget separately through Test & Deploy.

Related articles

Questions

Frequently asked questions.

In Apilo open Administration, then Apilo API keys, and click New application. Apilo shows the API address, Client ID, Client Secret and Authorization code. In ChatLab select your bot, go to the Connect tab, click Connect on the Apilo tile, paste all four values and click Connect.

ChatLab looks up an order for a customer who gives the order number and the e-mail address used to place it. The chatbot returns the order status, payment state, order date, ordered products, total amount, planned shipping dates, shipping method, carrier, pickup point name and shipments with tracking numbers.

The authorization code from Apilo is valid for 3 hours and can be used only once. If it has expired or was already used, create a new application in Apilo under Administration, Apilo API keys, and paste the new values into the Apilo form in ChatLab.

Yes. Open Settings, Actions, edit the Apilo - order details action, expand Advanced Settings and describe in AI Action Definition which message the customer should get for each status name. The chatbot then gives that message instead of the internal status name.

None beyond what the customer typed. The e-mail address is only compared with the one stored in the order. Customer name, phone, delivery address and invoice data are not passed to the chatbot. The pickup point name is passed because it is not personal data.

ChatLab renews access to Apilo automatically. If Apilo rejects the renewal, for example because the application was removed, the Apilo form in the Connect tab shows a warning. Create a new application in Apilo and enter its four values again.