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

      • 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
      • Accelerate Github code reviews with Zoho Cliq Platform's link handlers

        Code reviews are critical, and they can get buried in conversations or lost when using multiple tools. With the Cliq Platform's link handlers, let's transform shared Github pull request links into interactive, real-time code reviews on channels. Share
      • App Spotlight : PagerDuty for Zoho Cliq

        App Spotlight brings you hand-picked apps to enhance the power of your Zoho apps and tools. Visit the Zoho Marketplace to explore all of our apps, integrations, and extensions. In today's fast-paced world, seizing every moment is essential for operational
      • Automate your status with Cliq Schedulers

        Imagine enjoying your favorite homemade meal during a peaceful lunch break, when suddenly there's a PING! A notification pops up and ruins your moment of zen. Even worse, you might be in a vital product development sprint, only to be derailed by a "quick
      • Bulk user onboarding for Cliq Channels in a jiffy

        As developers, we frequently switch between coding, debugging, and optimizing tasks. The last thing we want is to be burdened by manual user management. Adding users one by one to a channel is tedious and prone to errors, taking up more time than we could