How to Use Coze Shortcuts for Creating Buttons and Telegram Commands

Written by ileolami | Published 2024/11/04
Tech Story Tags: ai-chatbot | coze | coze-experience | coze-ai-agent | ai-chatbot-development | nocode-ai-chatbot | llm | coze-shortcuts

TLDRA Coze shortcut is a feature that improves user efficiency by allowing quick and precise question input. They also serve as a navigation tool, guiding users on how to effectively interact with the agent. In this article, you will learn how to use Coze shortcuts to create shortcuts and commands.via the TL;DR App

Why should your users have to type long messages all the time when they can use shortcut buttons or Telegram commands to get responses from your chatbot?

Implementing this feature makes the user experience (UX) easier. In this article, you will learn how to use Coze shortcuts to create these shortcuts and commands.

What is a Shortcut?

A Coze shortcut is a feature that improves user efficiency by allowing quick and precise question input. They also serve as a navigation tool, guiding users on how to effectively interact with the agent.Ā Learn more on shortcuts here.

Setting Shortcut button

  1. Go to your chatbot develop workspace

  2. Click onĀ Shortcut

  3. Enter your Button details

    Button Name:Ā The name of the button

    Shortcut name:Ā The command name to invoke the shortcut. This is the same name you will add to your telegram bot to execute the message that corresponds to the command.

    Description:Ā Short description of the command.

    Component:Ā This is used for user options. This is used for selecting choices based on specific needs.

    Query content:Ā The content to be sent when the user clicks the shortcut button.

  4. Click onĀ Confirm

    You will see the button in your chatbot. To add more shortcuts to the chatbot, repeat the same process

  5. Click onĀ PublishĀ to sync the added shortcuts

Setting Up the Telegram Commands

  1. Go toĀ Bot father

  2. InputĀ /setcommands

  3. Select the bot you want to add the commands to

  4. Enter the list of commands(the shortcut name you earlier created)

    In this format

    security_news - Get the latest security news

  5. Upon successful addition, you will see the list of commands in your bot.

    To check, Click onĀ Menu

Check out the live demo below šŸ‘‡

https://youtu.be/DeXrKvXb2aw?embedable=true

Bonus

You can also use this shortcut for users to make choices e.g. You want users to get regular news feeds in specific language and specific language.

Follow the same process and add theĀ componentsĀ option

  1. Enter theĀ component name

  2. Enter theĀ component description

  3. EnterĀ Component typesĀ such asĀ Text,Ā UploadĀ (for media), andĀ Selector(to choose options)

    In the case ofĀ Selector, enter various options like this:

    ForĀ upload, select supported file formats

Congratulations šŸ„‚, youā€™ve successfully made use of the shortcut. What other scenario can you use this feature? Let me know in the comment section

Learn More on Coze and other Chatbots built on Coze


Written by ileolami | I am a front-end developer, a Guidance Counsellor,and technical writer
Published by HackerNoon on 2024/11/04