How to connect WooCommerce to AskSpot

To answer questions about orders and recommend the right products, AskSpot needs read access to your store. On WooCommerce that means one thing: a REST API key pair – a Consumer Key and a Consumer Secret. This guide walks through creating them, choosing the right permissions, and testing that they work.

Key takeaways

  • WooCommerce talks to AskSpot through the built-in REST API – no extra plugin needed.
  • You generate one key pair (Consumer Key + Secret) in the WooCommerce settings.
  • Read permission is enough for the agent to answer order and product questions.
  • The Secret is shown only once – copy it before you close the screen.

What the connection does

WooCommerce ships with a REST API turned on by default (version 3.5 and newer), so an AI chat agent built for e-commerce can read your catalog and order data through it – no legacy API to enable, no separate connector plugin. Authentication is a single Consumer Key / Consumer Secret pair you generate once and paste into AskSpot. From then on the agent can look up an order status or pull the right product into a recommendation, in the shopper’s own words.

Before you start

Four things need to be in place. Most stores already have all of them.

RequirementWhere to set / check it
WooCommerce installed and activePlugins → Installed Plugins
An Administrator account (or a role that can open WooCommerce settings)Users → Profile
Permalinks not set to “Plain” (e.g. “Post name”) – the REST API needs pretty permalinks to route requestsSettings → Permalinks
HTTPS enabled – recommended, and required for the credentials (Basic Auth) to travel safelyHosting / SSL certificate

Step 1 – Generate your REST API keys

  1. Sign in to your WordPress admin.
  2. Open WooCommerce → Settings → Advanced → REST API.
  3. Click Add key (labelled “Create an API key” on some versions).
  4. Fill in the form – Description: AskSpot; User: an account with access to orders; Permissions: Read (see the next section).
  5. Click Generate API key. WooCommerce shows the Consumer key (starts with ck_) and Consumer secret (starts with cs_) – copy both now.

The Consumer secret is displayed only once. Copy it straight away – once you leave the screen WooCommerce will not show it again, and you would have to generate a new key.

Read, or Read and Write?

Pick the narrowest permission that does the job. For answering order and product questions, Read is enough – and it is the safer default, because a read-only key can never change anything in your store. Choose Read/Write only if your setup also needs the agent to write back to WooCommerce; if you are not sure, start with Read and widen it later.

Step 2 – Test that the keys work

Before pasting the keys into AskSpot, confirm they authenticate. Call the orders endpoint with the key pair in the query string:

GET https://your-store.com/wp-json/wc/v3/orders?consumer_key=ck_XXXXX&consumer_secret=cs_XXXXX

Alternatively, use HTTP Basic Auth – the Consumer Key as the username (ck_…) and the Consumer Secret as the password (cs_…). A list of orders back means the credentials are valid.

Fix the usual errors

  • 401 Unauthorized – the key or secret is wrong, or the chosen user has no access to orders. Re-check both, and the user’s role.
  • “Consumer key is missing” – your server strips the Authorization header. Pass the keys in the query string instead, or enable “include credentials in the query”.
  • 404 on the endpoint – permalinks are set to “Plain”. Switch to “Post name” under Settings → Permalinks and try again.
  • Local or self-signed HTTPS – if you are testing against a staging site with a self-signed certificate, turn off SSL verification in your API client.

Step 3 – Add the keys to AskSpot

That is the WooCommerce side done. You add the connection yourself in the AskSpot partner panel – there is no need to send us the keys:

  1. Sign in to partners.askspot.io.
  2. Open the AI Chats section and go to Order handling.
  3. Click Add order platform and choose WooCommerce from the list.
  4. Enter your Store URL (with https://, e.g. https://yourshop.com), then paste the Consumer Key and Consumer Secret into their fields and click Save connection.
AskSpot partner panel: Order handling with the Add order platform dialog, WooCommerce chosen, and the Store URL, Consumer Key and Consumer Secret fields
In partners.askspot.io: AI Chats → Order handling → Add order platform → choose WooCommerce, then enter the store URL and paste the Consumer Key and Consumer Secret.

Stuck? Ask the built-in assistant. The AskSpot panel has an AskSpot Assistant in the top-right corner. Tell it what you want to set up and it walks you through connecting and configuring the agent – you don’t have to do it alone.

From then on the agent reads orders and products straight away – the same connection that lets it answer “where is my order?” and surface the right product in a recommendation. You can revoke or regenerate the key at any time from the same WooCommerce → Settings → Advanced → REST API screen.

For placement modes, display options and the full picture, see the WooCommerce integration.

Next – measure conversions. Once the chat is live, connect Google Analytics to see which conversations lead to sales. See how to track the AskSpot chat in Google Analytics.

Do I need a plugin to connect WooCommerce to AskSpot?

No. WooCommerce 3.5 and newer have the REST API enabled by default, so you only generate a key pair in the settings – there is nothing extra to install.

Should I choose Read or Read/Write permissions?

Read is enough to answer order and product questions and is the safer choice, since the key cannot change anything. Use Read/Write only if your setup needs the agent to write back to the store.

I did not copy the Consumer Secret – what now?

The secret is shown only once and cannot be retrieved later. Delete the key and generate a new one, then copy the secret before leaving the screen.

The endpoint returns a 404 – why?

The REST API needs pretty permalinks. If permalinks are set to “Plain”, switch to “Post name” (or any non-Plain option) under Settings → Permalinks, then retry.

Official references

For the authoritative, always-current details, see WooCommerce’s own documentation:

LinkedIn

Written by

AskSpot Team

AskSpot builds AI Chat and Inbox Agents for e-commerce: on-site product advice and 24/7 support across email, chat and marketplaces, in 200+ languages.

Case studies

Real results for e-commerce stores

See how online retailers use AskSpot to automate conversations, reduce support workload and grow sales.

All case studies

Morele.net

How Morele.net cut customer service costs by 90%

Morele.net cut support costs 90%, from 50 agents to 5. AskSpot resolves 65% of its 37,600 monthly chats with no human and answers Allegro questions too.

Read the story →

Militaria.pl

How Militaria resolves 72% of chats in 8 languages

Militaria.pl runs AskSpot across three domains in eight languages: 61% recommendation click-through, 26% add-to-cart after a chat, 72% resolved with no human.

Read the story →

4FIZJO

How 4FIZJO resolves 61% of customer chats with AI

AskSpot's AI Chat resolves 61% of 4FIZJO's 21,360 monthly chats with no human across 6 markets; its Inbox Agent auto-resolves 25% of email tickets.

Read the story →

Meblobranie

How chat advice puts €1.9M of garden furniture in baskets a month

Meblobranie's AskSpot agent answers the questions garden furniture is bought on – size, colour, anchoring, spare nets. Chat advice puts €1.9M into the cart a month, 20% of chats fill a basket, 70% resolved.

Read the story →

Szopex

How one AI agent runs across Szopex’s three retail brands

One AskSpot agent runs across Szopex's three storefronts – Sklep Biegacza, Warsaw Sneaker Store and SKStore – on three e-commerce platforms. 67% of chats resolved, 58% product CTR, 11.7% end in a purchase.

Read the story →

moderno.dk

How moderno.dk resolves 64% of furniture chats with no human

moderno.dk's AskSpot agent resolves 64% of furniture questions with no human – delivery, sizing, stock and order changes – and turns 12.3% of chats into carts.

Read the story →

16case studies

See every story

Every merchant we have measured – what shoppers asked, what the agent did, and the numbers it moved.

Browse them all →

Ready to make every conversation sell?

Book a demo and see AskSpot on your own catalog. Onboarding takes a few days.