← Notes

How to add WhatsApp AI chat to your PrestaShop store

Add the bitbybit chat widget to your PrestaShop product pages, connect WhatsApp, and teach your AI agent how to answer exchanges and delivery questions.

“Can I exchange this if I buy the wrong size?” A shopper asking that question needs the answer while they are still choosing. If you run a PrestaShop store, you can give a bitbybit AI agent your exchange policy and let the shopper ask on WhatsApp. You can also add web chat to the product page. Both setups work independently of your order database. WhatsApp setup · Storefront widget installation

When you’re ready to install, open Chat Widget in your bitChat workspace and copy your public snippet.

Where do you want the conversation to happen?

If customers already message your business number, start there. In bitbybit, open Integrations and connect WhatsApp Cloud API using the number you intend customers to contact. If you currently use that number in the WhatsApp Business App, check the coexistence setup before choosing a connection path. A web widget is a separate choice for shoppers who want to stay on the page. Cloud API setup · Cloud API and Business App compared

What should the agent know?

In AI Studio, open Knowledge Base → Add Knowledge → Website. Start with the exact public page that explains exchanges. Add the shipping policy and size guide separately so you can check each answer against its source. In the agent instructions, tell it when to involve your team. For example, it can explain the exchange deadline. A request to approve an exception goes to a person. Test both questions in Playground, then activate the agent on the intended channel. Knowledge Base guide · Agent skills and escalation

How do you put web chat on a PrestaShop product page?

You can add bitbybit’s own chat widget to your PrestaShop storefront. With a web-chat style selected, shoppers can ask a question while the product page stays open. For shoppers who prefer a WhatsApp conversation, connect your business number separately. Widget setup

  1. In the correct bitbybit workspace, open bitChat → Chat Widget → Install → Embed code. Copy the full snippet with the copy icon. The data-widget-key identifies your workspace’s widget.
  2. In your PrestaShop test storefront, use an existing theme facility that explicitly accepts footer scripts, if available. Otherwise give the snippet to your theme maintainer. On PrestaShop 9 they can use a small module on displayBeforeBodyClosingTag if the active theme includes it. Render the snippet once in the shared layout before </body>. PrestaShop hook and supported core themes
  3. In bitChat, choose your widget appearance and save. Open a product page in a signed-out mobile browser. Tap the launcher, send a test question and confirm the conversation appears in your workspace. Reply from bitChat and check that the shopper sees the reply. Repeat on a second page to catch layout-specific issues. Widget appearance
  4. If the launcher is missing, check whether that page is hidden in the widget settings, whether the active theme actually rendered the snippet, and whether the store is serving a cached layout. Once the two-way test passes, apply the same placement on the live theme and repeat it there. Widget visibility settings

Your production embed should resemble this example. Copy the current snippet from your own workspace. The only key needed in the storefront is the public widget key.

<script
  src="https://storage.googleapis.com/bitbybit-main/widget/embed.js"
  data-widget-key="YOUR_PUBLIC_WIDGET_KEY"
></script>

How do you know shoppers are getting the right answer?

Open a product page on a phone and ask the exchange question. Compare the reply with the policy, including any exclusions. From another phone, send the same question to the business WhatsApp number and check the reply in that thread. Finally ask, “Has my order shipped?” Until your team has connected and verified a private order lookup, give the shopper a way to reach someone who can check. A policy crawl can explain dispatch times. Only a trusted order record can tell this shopper where their parcel is.

Set up your agent · Set up your agent in AI Studio

To alert a buyer when their parcel ships, see PrestaShop WhatsApp order notifications.

Explore all PrestaShop integration options.