Dialogflow

Getting started

To start using the Dialogflow chatbot go Settings > WooCommerce > Dialogflow synchronization and click Synchronize entities now, then click Create Intents now. Once the synchronization is completed you're done. The chatbot will start replying to the users' questions.

Built-in Intents questions list

By importing the built-in Intents the chatbot can answer the questions like the below ones. For the full list please visit the Intents area of the Dialogflow console.

  • Do you sell any shoes for less than $299?

  • Show me your bags

  • Do you have anything for women in promotion?

  • What are the best shoes of 2020?

  • Add Abstract Print to the cart

  • Remove Abstract Print from the cart

  • What do you sell

  • What's the status of my order?

  • Where my order will be shipped?

  • Display the products in my cart!

  • Do you ship in Australia?

  • Where do you ship?

  • Open the shoes page.

  • Go to the cashmere tank page, please.


Actions

The following actions allow the chatbot to interact with the shop autonomously on behalf of the user. To use an action go to Dialogflow, edit an Intent, and add a new Custom Payload response with the following syntax: { "ACTION-NAME": ACTION-VALUE }.

Action codeDescription
{ "woocommerce-update-cart": [ "cart-add", "PRODUCT-NAME-OR-ID" ] }

Adds a product to the user's cart. Replace PRODUCT-NAME-OR-ID with the ID or full name of a product.

{ "woocommerce-update-cart": [ "cart-remove", "PRODUCT-NAME-OR-ID" ] }

Removes a product from the user's cart. Replace PRODUCT-NAME-OR-ID with the ID or full name of a product.

{ "woocommerce-checkout": true }

Redirects the user to the checkout page.

Multilingual

  • The multilingual feature is compatible with WPML and Polylang plugins.

  • To activate the multilingual feature go to Settings > WordPress > Multilingual plugin and choose WPML or Polylang. The synchronization automatically creates the Entities in all available languages of your website. For a language to work, the chatbot must be translated into that language in Dialogflow, more details here.

  • The built-in Dialogflow Intents are only in English, to translate them go to your Dialogflow Console, choose the language you want to translate, go to the Intents page, and translate the existing WooCommerce Intents.

  • The multilingual feature for the WooCommerce products attributes requires the WooCommerce Multilingual Plugin if you're using WPML, or Polylang for WooCommerce Plugin if you're using Polylang.

More information

  • If you edit an existing built-in WooCommerce Intent in Dialogflow and then you import again the intents from Settings > WooCoommerce > Dialogflow synchronization you will lose your customization. To keep your edits change the Intent name.

  • The chatbot can display up to 15 products via the slider rich message.

  • The chatbot is automatically updated every 60 min by default, but it can take longer. If you update a product, category, tag, or attribute, please wait a few hours for the new contents to take effect.

  • The synchronization detects the following events: product deleted, product restored from trash, product updated, new product added, product deleted, category or tag deleted, category or tag updated, new category or tag added.

  • To improve the chatbot add all the possible variants of an attribute, including the variants not used in your products. Example: if you sell only yellow and red t-shirts add all possible colors to the attribute color, not only yellow and red.

  • You can manually synch the chatbot at any time from Settings > WooCommerce > Dialogflow synchronization

  • Products must have the Regular price attribute set.

  • Products names must not use the double-quote char: ".

  • Some multilingual feature is not compatible with sub-domains or external domains language URLs.

Last updated