Find answers to your questions

How to Generate WooCommerce API Keys for Chatbot Studio?

If you want to pull data from WooCommerce inside your chatbot's Studio flows — for example, to look up an order's status — you'll need a Consumer Key and Consumer Secret.

Step 1: Open the REST API Settings

In your WordPress admin, go to WooCommerce → Settings → Advanced → REST API, then click Add key.

Step 2: Create the Key

Give it a description (for example, "YourGPT Chatbot"), choose a user with admin access, and set Permissions to Read. Then click Generate API key.

Read access is enough for looking up products and orders. Only choose Read/Write if your flow needs to change data in your store.

Step 3: Copy Your Keys

WooCommerce now shows your Consumer Key and Consumer Secret.

Copy both now — the secret is only shown once, and you won't be able to see it again after leaving this page.

Keep these keys secure. They grant access to your store's data, so store them somewhere safe and don't share them.

Step 4: Add Them to Your Studio Flow

In AI Studio, open your WooCommerce template and add these as configuration variables:

  • WOOCOMMERCE_STORE_URL — your store address, for example https://yourstore.com

  • WOOCOMMERCE_CONSUMER_KEY

  • WOOCOMMERCE_CONSUMER_SECRET

Publish the flow, and your chatbot can start answering from your WooCommerce data.

Was this article helpful?
©2026
Powered by YourGPT