Template catalog


A Chatbot for Sharing Product Prices Using Global

This chatbot efficiently shares product prices with customers using Global variables and GPT Tasks, enhancing the user experience in customer service.

image describing the tiledesk community chatbot

Customize this template quickly & easily with Tiledesk

Designed by

logo of the author of the chatbot published in the tiledesk community

saeid kajkolah

Published on

9/2/2024

Last update on

9/2/2024

Share this template to:

Try the Chatbot

More about this template

In the world of customer service, chatbots have become an integral part. They provide quick and efficient responses, enhancing the user experience. This chatbot template will ask the user which product they are interested in and then share the price of that product. I will walk you through the process of creating this chatbot below.

This chatbot utilizes Global variables, which are constants throughout the conversation flow, and can be recalled and reused at any point during the conversation.

What are Global Variables?

Global variables are key-value pairs that remain constant throughout the conversation flow. The 'Key' is the name of the variable, and the 'Value' is the data you input. For this template, I will use a Global variable named 'Pricetable', where we will store the names of the products and their respective prices.

The Power of GPT Tasks

This chatbot template is powered by GPT Tasks. This means we write prompts to find the price of the product that the user asks for, and then generate human-like responses with the price of the item. If the bot cannot find the item in the list, it will generate a response saying, "Oh sorry, the item is not available right now."

Step-by-Step Tutorial

Now, let's dive into the step-by-step process of creating this chatbot:

  1. Setting up the Global Variable: First, select "Globals" from the left sidebar menu. Then, add a new global variable.
  2. Choosing a Key and Inputting Values: Next, choose a Key for your variables and input your price list in the Value section.
  3. Capturing User Reply: Now, return to the Blocks section to design the bot. You'll need an action called "Capture User Reply" to capture the customer's response. You can assign an attribute to it. In this case, we used 'UserReply' as the attribute.
  4. Using the ChatGPT Task Action: For the next block, use the 'ChatGPT Task' action. You can see the prompt I wrote and the way we recall the price list.

Prompt:

"Given the user’s reply, {{UserReply}}, which is asking for the price of a product, try to identify the product from the {{pricetable}}. The {{pricetable}} contains product names in the first column and their corresponding prices in the second column. Your task is to find the product that the user asked for in their reply, {{UserReply}}, and then find that product in the {{pricetable}}.

Please share only the price of the product that the user has inquired about. If there is a minor spelling error in the product name provided by the user, try to understand what product they’re referring to and provide the price for that product.

Your responses should mimic a human agent supporting users. If you can’t find the product that the user is asking for in the {{pricetable}}, respond by saying that the product is not currently available."

  1. Adding a New Reply Block: Finally, add a new reply block and simply choose the {{gpt_reply}}.

And that's it! You have successfully created a chatbot that can share product prices with customers. In the video below, you can see how the bot finds the price in the table and shares it with the user.

I hope this tutorial was helpful in guiding you through the process of creating a chatbot for Tiledesk. Happy bot building!

Tags

    #chatgpt

    #globals

    #customersupport

Integrations

Once designed, you can run your unlimited no-code chatbots on every communication channel of your choosing. Be it WhatsApp, Telegram or Facebook Messenger. With no further clicks or actions.