ChatMaxima Docs
Intégrations

Salla Integration: AI WhatsApp Agent for Your Salla Store

Install ChatMaxima from the Salla App Store, link it with a one-time code and let an AI agent answer order, tracking and product questions on WhatsApp.

Overview

The ChatMaxima Salla integration connects your Salla store to WhatsApp, Instagram and your website chat. Customers ask where their order is, whether a product is in stock, or how much it costs, and an AI agent answers from your live store data in Arabic or English.

Once your store is connected you can:

  • Answer order questions with the status, total, payment method and shipment tracking link, by order number or by the customer's phone number
  • Search your catalog and reply with product names, prices and stock
  • Confirm cash on delivery orders on WhatsApp and update the order status in Salla
  • Start flows from store events such as a new order, a status change, a shipment, a cancellation or an abandoned cart
  • Hand the chat to your team in the shared inbox when a question needs a person

Note: The AI agent and the Salla block answer on every channel connected to your bot. Messages that ChatMaxima sends first, such as order updates and abandoned cart reminders, go out on WhatsApp and use WhatsApp templates approved by Meta.

Prerequisites

Before you begin, make sure you have:

  • A Salla store where you are an admin, so you can install apps and change app settings
  • A ChatMaxima account on any active plan
  • A WhatsApp number connected to ChatMaxima if you want to message customers on WhatsApp. See Channels.

Step 1: Install ChatMaxima from the Salla App Store

  1. Sign in to your Salla store dashboard.
  2. Open the Salla App Store, search for ChatMaxima and click Install.
  3. Review the permissions and approve them.

ChatMaxima asks for read access to your store settings, customers, carts, products and shipping, read and write access to orders (to update the status of cash on delivery orders) and read and write access to webhooks (to start flows from store events). It never changes products, prices or customers.

Salla does not tell ChatMaxima which workspace you use, so you link the two with a one-time code.

  1. In ChatMaxima, open Integrations in the sidebar and click Add Integrations.
  2. Enter a name for the integration, for example My Salla Store, and choose Salla as the platform.
  3. Click Connect store. ChatMaxima shows Connect your Salla store in two steps with a code such as CM-AB12-CD34.
  4. Click Copy.

Paste the code in Salla

  1. In your Salla dashboard, open Installed Apps, then ChatMaxima, then Settings.
  2. Paste the code into the ChatMaxima link code field.
  3. Click Save.

The ChatMaxima page updates by itself and shows Your Salla store is connected. You do not need to refresh it.

DetailWhat to know
Code formatCM- followed by two groups of four letters or numbers
ValidityWorks once and expires after 24 hours
Several workspacesEach workspace generates its own code; the store can be linked to more than one workspace
ReconnectingOpen the integration and click Reconnect store to get a new code

Note: If Salla brings you back to ChatMaxima right after the install, the store connects on its own and you can skip pasting the code. If the code does not complete the link, click Did not work? Connect with Salla sign-in instead and approve access in the window that opens.

Step 3: Use the Salla block in a bot

The Salla block reads your store during a conversation and saves the result in a variable for the rest of the flow.

  1. Open Studio and edit your bot.
  2. Drag the Salla block onto the canvas, or right-click a block and choose Add block after.
  3. Choose your Salla integration, then choose an action under Select Type.
  4. Fill in the fields for that action and name the response variable.
ActionWhat it doesMain field
Get Order DetailsStatus, total, payment method, items and tracking link of one orderOrder number
Get Customer OrdersThe latest orders of a customerCustomer phone or email
Find CustomerThe customer's profileCustomer phone or email
Get All OrdersThe latest orders in the storeLimit
Get Product DetailsOne product with price and stockProduct ID
Search ProductsProducts that match a search, with pricesSearch text
Get All ProductsThe latest products in the storeLimit
Update Order StatusMoves an order to a new status and saves an optional noteOrder number, New order status

Use {sys_account_contact_mobile} in Customer phone or email to match the customer who is chatting with the bot.

The block has two outputs. The second output, no match or error, runs when the order or customer is not found or the store cannot be reached, so you can reply with a helpful message instead of an empty answer.

Let the AI agent use your store

Connect Salla blocks to an AI Assistant block as tools. The agent then decides by itself when to look up an order or search products, based on what the customer asks. Use {user_response} as the order number or search text so the agent can fill it in.

Confirm cash on delivery orders

Use Update Order Status after the customer confirms on WhatsApp, for example with buttons "Confirm" and "Cancel":

  • Confirm moves the order to Confirmed (in progress)
  • Cancel moves the order to Cancelled

The optional Note is saved on the order in Salla, for example "Confirmed by the customer on WhatsApp".

Note: The block's Playground tab does not change orders. Test Update Order Status in a test conversation instead.

Step 4: Start flows from Salla events

  1. In Studio, add a Webhook block as the start of a flow and open Trigger source.
  2. Under App, choose Salla, then choose your integration under Integration.
  3. Under Events, tick the events that should start the flow.
  4. Click Register events, then save the flow.
EventWhen it fires
Order createdA customer places an order
Order status updatedThe order status changes in Salla
Shipment createdA shipment is created for an order
Order cancelledAn order is cancelled
Abandoned cartSent after the store's abandoned cart delay
Customer createdA new customer registers

Each event gives the flow a store object you can map to variables, including store.customer_name, store.customer_mobile (ready for WhatsApp), store.order_number, store.order_status, store.order_total, store.payment_method, store.is_cod, store.tracking_url and, for abandoned carts, store.cart_url and store.cart_total.

Best Practices

  • Ask for the order number first, and fall back to the customer's phone with Get Customer Orders when they do not have it
  • Always wire the second output so a wrong order number gets a clear reply
  • Use approved WhatsApp templates for order updates and abandoned cart messages, since they are sent outside the 24-hour reply window
  • Keep one integration per store per workspace; several workspaces can share the same store

Troubleshooting

  1. Check that you pasted the whole code, including CM-, and clicked Save in the Salla app settings.
  2. Check that the code is less than 24 hours old and has not been used. Click Connect store again for a new one.
  3. Only one code is kept in the store's app settings at a time. If someone else saved another code afterwards, paste yours again and save.

Store events do not start the flow

  1. Open the Webhook block and check that the events are listed under Registered events.
  2. If you reinstalled the app, click Register events again and save the flow.

A customer's orders are not found by phone

Ask the customer for the phone number used at checkout, with the country code. The block also matches local numbers that start with 0.

Next Steps

Sur cette page