Chat with us
Up to 60% OFF with Recurring Discounts on Premium Upgrades & Whitelabel FlexUp to 60% OFF on Premium Upgrade & Whitelabel03:00:00:00Claim
Knowledgebase/Integration/Article

How to Integrate a WooCommerce Product API with a Telegram Bot Using BotSailor

  • 17 Nov 2026
  • 13 min read
  • 0 views
TL;DR:

Learn how to connect WooCommerce product data with a Telegram bot using BotSailor HTTP API, custom fields, and automated product information replies.

How to Show WooCommerce Product Information in Telegram Using BotSailor HTTP API

Imagine you run an online clothing store on WordPress with WooCommerce, and you want your Telegram customers to check product details instantly. In this tutorial, we will use a sample product, the Classic Cotton T-Shirt, and build an automation where a customer sends a keyword in Telegram and BotSailor replies with the product name, SKU, price, and link, pulled live from your store through the HTTP API.

Prerequisites

Before starting the integration, make sure you have:

  • ● An active WordPress website with WooCommerce installed.
  • ● At least one published WooCommerce product.
  • ● An active BotSailor account.
  • ● A connected Telegram bot in BotSailor.
  • ● Access to BotSailor’s HTTP API and Subscriber Manager features.
  • ● Access to your Telegram account for testing.

Example used in this tutorial:

  • ●Product Name: Classic Cotton T-Shirt
  • ●SKU: TSHIRT-001
  • ●Product ID: 12
  • ●API Name: WordPress Product API
  • ●HTTP Method: GET
  • ●Trigger Keyword: productcheck
  • ●Telegram Bot: Zedzzzz (@Zedzzzzbot)

Important

The product must be published. The integration retrieves product information through the WooCommerce Store API, which only returns publicly available product data.

Step-by-Step Instructions

Step 1: Create a Product in WooCommerce

First, create a product in your WooCommerce store. The product information will be retrieved through the WooCommerce Store API and sent to Telegram.

  1. 1 Log in to your WordPress dashboard.
  2. 2 Navigate to Products from the left-hand sidebar.
  3. 3 Click Add New Product or open an existing product.

For this demonstration, enter the following product details:

  • ●Product Name: Classic Cotton T-Shirt
  • ●SKU: TSHIRT-001
  • ●Regular Price: 850
  • ●Sale Price: 750
  • ●Product Description: Comfortable cotton T-shirt for casual wear.
  1. 4 Review the product details.
  2. 5 Click Publish or Update.
  3. 6 Make sure the product is published and publicly accessible.
Classic Cotton T-Shirt product page in WooCommerce
Published Classic Cotton T-Shirt displayed on the WooCommerce storefront.

Step 2: Access the WooCommerce Product API

After publishing your product, prepare the API endpoint that will retrieve its information. WooCommerce provides a Store API that allows external applications to access publicly available product information. The endpoint follows this structure:

https://YOUR-DOMAIN.com/wp-json/wc/store/v1/products/PRODUCT-ID

For this demonstration, the endpoint is:

https://YOUR-DOMAIN.com/wp-json/wc/store/v1/products/12
  1. 1 Replace YOUR-DOMAIN.com with your actual website domain.
  2. 2 Replace 12 with your product’s actual ID.
  3. 3 Keep this endpoint ready. You will need it when configuring the HTTP API in BotSailor.

The HTTP method for this request is GET because the purpose is to retrieve existing product information rather than create or update a product.

WooCommerce product editing screen showing product details and SKU
Review the product name, permalink, SKU, and pricing in WordPress.

Step 3: Navigate to the HTTP API Integration in BotSailor

Now move to your BotSailor dashboard.

  1. 1 Log in to your BotSailor account.
  2. 2 Open Chatbot Manager.
  3. 3 Select your connected Telegram bot, Zedzzzz.
  4. 4 Navigate to the Integrations tab.
  5. 5 Select HTTP API.
  6. 6 Click the Create button.

You can now configure a new HTTP API connection.

BotSailor Telegram bot HTTP API integration dashboard
Navigate to Integrations and open HTTP API to create a new connection.

Step 4: Configure the HTTP API Details

After you click Create, BotSailor displays the HTTP API configuration interface. Provide the basic connection information here.

  1. 1 In the API Name field, enter the name below. Choose a descriptive name so you can easily identify this integration later.
WordPress Product API
  1. 2 From the Method dropdown, select GET.
  2. 3 In the API Endpoint URL field, paste your WooCommerce Store API endpoint.
  3. 4 Check that the domain and product ID are correct before continuing.
BotSailor HTTP API configuration with API name GET method and endpoint
Enter the API name, request method, and WooCommerce product endpoint.

Step 5: Configure the Request Data

The next section is Request Data. It allows you to configure additional information that is sent with your API request. In this example, the API endpoint already contains the product ID, so additional request body information is not required.

  1. 1 Open the Body tab.
  2. 2 Keep the DEFAULT option selected.
  3. 3 Do not add unnecessary body parameters.
  4. 4 Leave Headers, Option Data, and Cookies unchanged unless your API requires additional information.

Using the AI API Builder (Optional)

BotSailor also provides an AI API Builder to help configure API integrations. You can use the following options:

  • ●Describe in English: Explain the API integration in plain English.
  • ●Paste cURL: Provide a cURL command.
  • ●Paste your API docs: Supply API documentation.
  • ●Paste JSON: Provide JSON information.

For this example, manually entering the API details is sufficient.

Tip

Review any AI-generated configuration before using it.

BotSailor AI API Builder with API configuration options
Explore the available AI API Builder configuration methods.

Step 6: Test and Verify the API Request

Before using the API in your chatbot automation, test whether BotSailor can successfully retrieve product information. Scroll down to the Test & Verify section, where you will find two testing options:

  • ●Use Sample Data: Tests the API using predefined sample values.
  • ●Use Recent Subscriber: Uses information from a selected subscriber.
  1. 1 Select Use Sample Data.
  2. 2 Review the API configuration.
  3. 3 Click Send Test Request.
  4. 4 Wait for the response.
  5. 5 Check the Last Response panel.

If the request is successful, BotSailor displays the API response in JSON format. The response should contain product information such as:

  • ● Product ID
  • ● Product name
  • ● Product slug
  • ● Product permalink
  • ● SKU
  • ● Short description
  • ● Product description
  • ● Pricing information

For the example product, the response includes Name: Classic Cotton T-Shirt, SKU: TSHIRT-001, Product ID: 12, and Price: 75000.

Important

The API response shows 75000 as the raw price value. It is not automatically formatted as $750.00 in the chatbot message.

BotSailor Test and Verify section with Use Sample Data and Last Response
Use Sample Data, send the test request, and review the Last Response panel.

Step 7: Create Custom Fields in Subscriber Manager

Before mapping the API response, prepare the custom fields where BotSailor can store the retrieved product information. Custom fields allow BotSailor to store additional subscriber-related information that can be used in chatbot automations. For this integration, we will create four custom fields.

  1. 1 Navigate to Subscriber Manager from the left-hand sidebar.
  2. 2 Locate the Manage Custom Fields option.
  3. 3 Click Create Custom Field.
BotSailor Subscriber Manager with Manage Custom Fields panel
Open Manage Custom Fields to prepare product information fields.
  1. 4 Enter the custom field name below. This field stores the product name retrieved from WooCommerce.
product_name
  1. 5 Select Text as the field type.
  2. 6 Click Save.
BotSailor create custom field form with Text field type
Create a custom field and select Text as its data type.

Repeat the same process for the remaining three fields, using Text as the field type for each:

product_sku

Stores the product SKU.

product_url

Stores the product permalink.

product_price_raw

Stores the raw product price.

Important

Make sure the field names are written exactly as shown. These names will be used later during response mapping.

  1. 7 Open the Manage Custom Fields panel again.
  2. 8 Make sure all four fields appear in the custom field list.
BotSailor custom fields list showing product information fields
Verify the four custom fields required for product response mapping.

Step 8: Configure the API Response Mapping

Now return to the HTTP API configuration page. The Response Mapping section connects the information received from the WooCommerce API with the custom fields you created. This tells BotSailor where to store each product value.

  1. 1 Scroll down to the Response Mapping (Optional) section.
  2. 2 Click Add Mapping to create a mapping row.
  3. 3 In the first row, set Response Field (From API) to name and Map to Custom Field to product_name.
  4. 4 Click Add Mapping again. Set Response Field (From API) to sku and Map to Custom Field to product_sku.
  5. 5 Click Add Mapping again. Set Response Field (From API) to permalink and Map to Custom Field to product_url.
  6. 6 Click Add Mapping again. Set Response Field (From API) to prices > price and Map to Custom Field to product_price_raw.
  7. 7 Leave the Formatter options unchanged for this example.

Your response mapping should now contain four rows:

  • ●name → product_name (stores the product name)
  • ●sku → product_sku (stores the product SKU)
  • ●permalink → product_url (stores the product’s direct URL)
  • ●prices > price → product_price_raw (stores the raw price value returned by the API)
BotSailor HTTP API response mapping with four product fields
Connect WooCommerce API response fields to BotSailor custom fields.

Step 9: Save the HTTP API Configuration

After completing all four mappings, save your API configuration.

  1. 1 Review each response field.
  2. 2 Check that every API response field is connected to the correct custom field.
  3. 3 Click Save API.

BotSailor displays a success confirmation indicating that the HTTP API data has been mapped and saved successfully. This means your API configuration and response mappings are saved.

BotSailor success message after saving the HTTP API mapping
BotSailor confirms the HTTP API data has been mapped and saved.

Step 10: Verify the Saved HTTP API

After saving, confirm that your new API appears in the list.

  1. 1 Return to the HTTP API list.
  2. 2 Find your newly created API, WordPress Product API.
  3. 3 Check the API name, verification status, Total Calls, Total Success, and Total Error.

In the demonstration, the API shows Total Calls: 2, Total Success: 2, and Total Error: 0. This confirms that both recorded API requests were successful.

BotSailor HTTP API list showing successful product API calls
Review API verification status and successful request statistics.

Step 11: Create a Keyword-Based Automation

Now that the API is ready, create a chatbot automation that customers can trigger from Telegram.

  1. 1 Navigate to Chatbot Manager.
  2. 2 Select your connected Telegram bot, Zedzzzz.
  3. 3 Open the Automation tab.
  4. 4 Select Keyword Replies.
  5. 5 Click Create.
BotSailor Keyword Replies list in the Automation tab
Open Keyword Replies from the Automation tab and click Create.

In the Basic Setup section, enter the following information:

  1. 6 In the Trigger Keywords field, enter:
productcheck
  1. 7 For Keyword Matching Type, select Exact keyword match.
  2. 8 In the Title field, enter:
WordPress Product Information
  1. 9 Review the keyword settings and save the reference.
  2. 10 Check that WordPress Product Information now appears in your Keyword Replies list.

When a Telegram subscriber sends the exact keyword productcheck, BotSailor executes this automation.

BotSailor keyword reply configuration with trigger keyword and flow preview
Set the trigger keyword, matching type, and title for the keyword reply.

Step 12: Understand the Bot Flow

After creating the keyword reply, configure the actual automation flow. The flow needs three connected components, and each one has a specific job:

  • ●Start Bot Flow: Starts the automation when the keyword is triggered.
  • ●HTTP API: Retrieves the latest product information from WooCommerce.
  • ●Text: Displays the retrieved information in Telegram.

The connection should follow this order:

Start Bot Flow → HTTP API → Text
BotSailor product information flow with Start Bot Flow HTTP API and Text nodes
Review the connected chatbot flow and its Telegram preview.

Step 13: Add and Configure the HTTP API Node

Next, connect your saved WooCommerce API to the automation.

  1. 1 Open the bot flow editor.
  2. 2 Select the HTTP API component from the available message options.
  3. 3 Add it after the Start Bot Flow component.
  4. 4 Connect the Start Bot Flow output to the HTTP API input.
  5. 5 Open the HTTP API configuration panel.
  6. 6 Under HTTP API List, select the API below:
WordPress Product API: GET
  1. 7 Click Save Changes.

You do not need to recreate the API configuration because it was already saved under Integrations. The HTTP API node is now ready to retrieve product information when the automation runs.

BotSailor HTTP API node configured with WordPress Product API GET
Select the saved WooCommerce API in the HTTP API node.

Step 14: Configure the Text Message

Once the HTTP API node is configured, add a Text component to display the retrieved information.

  1. 1 Click the output connection of the HTTP API node.
  2. 2 Select Text from the available options.
  3. 3 Connect the HTTP API node to the Text node.
  4. 4 Open the Text configuration panel.
  5. 5 In the Reply message field, enter the message below. Use BotSailor’s Custom variable selector to insert the variables instead of typing product values:
🛍️ Product Information

📦 Product Name:
#product_name#

SKU: #product_sku#

💰 Price:
#product_price_raw#

🔗 Product Link: #product_url#

Make sure the variable names match the fields created in Subscriber Manager:

  • ●#product_name#
  • ●#product_sku#
  • ●#product_price_raw#
  • ●#product_url#

Important

Do not type ordinary product values into the message if you want the bot to retrieve dynamic information. When the automation runs, these variables are filled using the values stored through the API response mapping.

  1. 6 Review the content and verify that all four variables are included.
  2. 7 Click Save Changes.
BotSailor Text Message editor with dynamic product custom field variables
Insert product name, SKU, price, and URL variables into the Telegram reply.

Step 15: Connect and Save the Complete Automation

Before testing, review the complete flow. Make sure the nodes are connected in the correct order:

Start Bot Flow → HTTP API → Text

Also check that:

  • ● The Start Bot Flow uses the productcheck keyword.
  • ● The HTTP API node uses WordPress Product API: GET.
  • ● The Text node contains the correct dynamic variables.
  • ● No connection between the three nodes is missing.
  1. 1 Click Save in the flow editor.

Your WooCommerce product information integration with Telegram is now configured.

BotSailor flow editor with the Save button highlighted
Save the complete flow after reviewing the connected nodes.

Success Verification

Now it is time to test the complete integration. Go through this checklist:

  • ● Open your connected Telegram bot, Zedzzzz (@Zedzzzzbot).
  • ● Send the keyword productcheck in the Telegram chat.
  • ● BotSailor recognizes the exact keyword and starts the WordPress Product Information automation.
  • ● The HTTP API request runs and retrieves the WooCommerce product information.
  • ● The mapped custom fields are used and the Text node sends the product information.
  • ● The Telegram response displays Product Name: Classic Cotton T-Shirt, SKU: TSHIRT-001, Price: 75000, and the Product Link of your published WooCommerce product.
Telegram bot displaying Classic Cotton T-Shirt product information
Final Telegram response showing the WooCommerce product name, SKU, price, and product link.

You can also review each request in BotSailor’s HTTP API Report.

HTTP API Report dashboard showing successful WordPress Product API requests
HTTP API Report dashboard showing three successful WordPress Product API requests, with subscriber details, timestamps, and response information.

Remember

The price appears as the raw value 75000 because it is mapped to product_price_raw without extra formatting. This is expected in this demonstration.

Troubleshooting

If your Telegram bot does not return the expected product information, check the following possible issues.

1. API Request Failed

Possible cause: The API endpoint URL or product ID is incorrect.

Solution:

  1. 1 Check your WooCommerce product ID.
  2. 2 Verify the API endpoint.
  3. 3 Make sure the product is published.
  4. 4 Run another test using Send Test Request.

2. Product Information Is Missing

Possible cause: The API response mapping is incomplete or incorrect.

Solution:

  1. 1 Open the saved HTTP API configuration.
  2. 2 Review the Response Mapping section.
  3. 3 Verify the API response fields.
  4. 4 Make sure all four fields are mapped to their correct custom fields.

3. Custom Fields Are Not Working

Possible cause: The custom field names do not match the variables used in the Text node.

Solution:

  1. 1 Open Subscriber Manager.
  2. 2 Check the four custom field names.
  3. 3 Make sure their spelling matches the mapped fields.
  4. 4 Verify that the Text node uses the correct variables.

4. Telegram Bot Does Not Respond

Possible cause: The keyword reply or flow has not been saved correctly.

Solution:

  1. 1 Check whether the keyword is productcheck.
  2. 2 Verify that Exact keyword match is selected.
  3. 3 Make sure the automation is saved.
  4. 4 Check the connection between Start Bot Flow, HTTP API, and Text.

5. Product Price Appears Without Currency Formatting

Possible cause: The API response is mapped to product_price_raw, which stores the raw price value.

Solution: Review the API response and its Formatter settings if you want to display the price with a currency symbol or a formatted decimal value. In this demonstration, the raw value 75000 is displayed without additional formatting.

Next Steps

After successfully connecting WooCommerce with Telegram, you can expand the integration to support additional product information and customer interactions. Some possible improvements include:

  • ●Multiple Product Integrations: Create additional API configurations for retrieving information about different products.
  • ●Additional Product Fields: Extend your response mapping to include product descriptions, images, stock information, or other available API data.
  • ●Product Category Automation: Create separate keyword replies for different product categories.
  • ●Price Formatting: Use suitable data formatting to display prices in a more readable currency format.
  • ●Product Inquiry Automation: Add buttons or follow-up messages to help customers explore products.
  • ●Order and Customer Automation: Build additional API integrations for other WooCommerce operations where supported.

By combining WooCommerce, BotSailor HTTP API, Subscriber Manager, and Telegram automation, you can build a more connected product information experience for your customers.

Sanoary Rahaman Istiaque

Sanoary Rahaman Istiaque

FAQ

Frequently Asked Questions

Find answers to common questions about this topic

A WooCommerce Product API is an interface that allows external applications to retrieve product information from a WooCommerce store. In this tutorial, the WooCommerce Store API is used to retrieve product details through a GET request.

Yes. You can connect WooCommerce product information with a Telegram bot using BotSailor's HTTP API integration and keyword-based automation.

The HTTP API allows BotSailor to communicate with external services. In this example, it retrieves product information from the WooCommerce Store API and makes the response available for use in the chatbot flow.

Subscriber Manager allows you to create custom fields for storing additional subscriber-related information. These fields are used to map and access product information in the chatbot automation.

This demonstration uses four custom fields:
product_name
product_sku
product_url
product_price_raw

The GET method retrieves existing information from an API endpoint. Here, it retrieves the details of a specific WooCommerce product.

Response Mapping connects fields returned by an API with custom fields in BotSailor. It allows the automation to use specific information, such as product name, SKU, price, and URL.

The bot uses a keyword-based automation. When a subscriber sends the configured keyword productcheck, BotSailor starts the corresponding flow.

Yes. You can configure additional API endpoints for other product IDs and build suitable automation flows to retrieve and display their information.

The API response may provide the price as a raw numeric value. If you want to display a formatted price with a currency symbol or decimal places, you need to configure suitable data formatting before sending the message.

Related Articles

Knowledgebase

How to Integrate Google Sheets with a Telegram Bot Using with BotSailor

Sanoary Rahaman Istiaque
Sanoary Rahaman Istiaque
  • 15 Oct 2026