message var is empty in bot mention handler

message var is empty in bot mention handler

Hi,
I'm encountering a problem: in my bot's mention handler, I want to retrieve the text the user typed when mentioning the bot.
Example:
On the #tests-cyril channel, I send this message: “@Donna hello how are you ?”
I expect the system variable "message" to be populated.
But in my code, when I look at the contents of the message variable, it's empty.
Previously, I had a another bot Donna where I had configured mentions and it worked fine. But this morning, when I tried again, I realize that it doesn't work anymore either. Have there been any changes in this area?

Here is the code for mention handler : 

  1. response = Map();
  2. data = Map();
  3. // Get user and chat infos
  4. data.put("chatId",chat.get("id"));
  5. data.put("username",user.get("first_name"));
  6. data.put("userId",user.get("id"));
  7. data.put("email",user.get("email"));
  8. data.put("text",message);

  9. //DEV
  10. //PostURL = "https://n8n.heyliot.space/webhook-test/5f233732-a5f5-4138-9a7d-XXXXX";

  11. //PROD
  12. //PostURL = "https://n8n.heyliot.space/webhook/5f233732-a5f5-4138-9a7d-XXXX";

  13. //TEST
  14. PostURL = "https://webhook.site/bdddca33-c926-45e0-9cb9-XXXX";

  15. fetchCompletions = invokeurl
  16. [
  17. url :PostURL
  18. type :POST
  19. parameters:data
  20. ];
  21. text = fetchCompletions;
  22. response.put("text",text.get("output"));
  23. return response;

Here is a screenshot of my debugging endpoint : 


    • Sticky Posts

    • Add Claude in Zoho Cliq

      Let’s add a real AI assistant powered by Claude to your workspace this week, that your team can chat with, ask questions, and act on conversations to run AI actions on. This guide walks you through exactly how, step by step, with all the code you'll need.
    • Cliq Bots - Post message to a bot using the command line!

      If you had read our post on how to post a message to a channel in a simple one-line command, then this sure is a piece of cake for you guys! For those of you, who are reading this for the first time, don't worry! Just read on. This post is all about how
    • Automating Employee Birthday Notifications in Zoho Cliq

      Have you ever missed a birthday and felt like the office Grinch? Fear not, the Cliq Developer Platform has got your back! With Zoho Cliq's Schedulers, you can be the office party-cipant who never forgets a single cake, balloon, or awkward rendition of
    • Automate attendance tracking with Zoho Cliq Developer Platform

      I wish remote work were permanently mandated so we could join work calls from a movie theatre or even while skydiving! But wait, it's time to wake up! The alarm has snoozed twice, and your team has already logged on for the day. Keeping tabs on attendance
    • Customer payment alerts in Zoho Cliq

      For businesses that depend on cash flow, payment updates are essential for operational decision-making and go beyond simple accounting entries. The sales team needs to be notified when invoices are cleared so that upcoming orders can be released. In contrast,