<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Integration · QuickRef</title><link>https://qref.eknath.dev/tags/integration/</link><description>Integration updates from QuickRef</description><language>en-us</language><atom:link href="https://qref.eknath.dev/tags/integration/index.xml" rel="self" type="application/rss+xml"/><lastBuildDate>Sat, 05 Dec 2026 00:00:00 +0000</lastBuildDate><item><title>Zoho Cliq Bots</title><link>https://qref.eknath.dev/tools/zoho-cliq-bots/</link><guid isPermaLink="true">https://qref.eknath.dev/tools/zoho-cliq-bots/</guid><pubDate>Sat, 05 Dec 2026 00:00:00 +0000</pubDate><category>zoho</category><category>cliq</category><category>bot</category><category>deluge</category><category>webhook</category><category>integration</category><description>Zoho Cliq bot handlers, incoming webhooks and tokens, message actions and Deluge connections, with copy-paste snippets for quick integrations.</description><content:encoded><![CDATA[<h2 id="overview">Overview</h2>
<p>Zoho Cliq can be extended with bots, message actions, webhooks and connections, all scripted in Deluge from the console (Profile &gt; Bots &amp; Tools). This page is the short path to a working integration: what to use when, the variables each handler gets, and snippets to paste and adapt.</p>
<p>Host depends on your data centre (<code>cliq.zoho.com</code>, <code>.in</code>, <code>.eu</code>, <code>.com.au</code>). Snippets use <code>cliq.zoho.in</code>.</p>
<h2 id="setup">Setup</h2>
<div class="highlight"><pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:2;-o-tab-size:2;tab-size:2;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>1. Bots &amp; Tools &gt; Bots &gt; Create     unique name, letters/digits/underscore (no hyphens), e.g. mybuddy
</span></span><span style="display:flex;"><span>2. Add the bot to the channels it must work in
</span></span><span style="display:flex;"><span>3. Bots &amp; Tools &gt; Connections       create a Zoho Cliq connection (scopes below), authorise it
</span></span><span style="display:flex;"><span>4. Bots &amp; Tools &gt; Webhook Tokens    generate a token (max 5 per user), keep it out of git
</span></span><span style="display:flex;"><span>5. Bot &gt; Edit Handlers              paste the handler code
</span></span><span style="display:flex;"><span>6. Test in a sandbox channel first
</span></span></code></pre></div><h2 id="choosing-a-piece">Choosing a Piece</h2>
<table>
  <thead>
      <tr>
          <th>Need</th>
          <th>Use</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Run something on one specific message with a click</td>
          <td>Message action</td>
      </tr>
      <tr>
          <td>Commands by typing (<code>@mybuddy status</code>)</td>
          <td>Mention handler</td>
      </tr>
      <tr>
          <td>A script, CI job or service posts into Cliq</td>
          <td>Incoming webhook handler + webhook token</td>
      </tr>
      <tr>
          <td>Greet users</td>
          <td>Welcome handler</td>
      </tr>
      <tr>
          <td>Read or write threads and chats from Deluge</td>
          <td>Connection to Cliq</td>
      </tr>
      <tr>
          <td>Create a ticket or issue in another service</td>
          <td>Message action or mention + connection to it</td>
      </tr>
      <tr>
          <td>Plain alert, no logic</td>
          <td><code>zoho.cliq.postToChannelAsBot(...)</code></td>
      </tr>
  </tbody>
</table>
<div class="highlight"><pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:2;-o-tab-size:2;tab-size:2;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>Bot             identity + handlers + incoming URL. Not for &#34;click on one message&#34;.
</span></span><span style="display:flex;"><span>Message action  menu entry on a message. Can start a thread. Cannot post as the bot by itself.
</span></span><span style="display:flex;"><span>Connection      stored credential Deluge uses for you. Skip it for public APIs or a plain secret header.
</span></span></code></pre></div><h2 id="bot-handlers">Bot Handlers</h2>
<p>Console: Bots &amp; Tools &gt; Bots &gt; your bot &gt; Edit Handlers. Every handler returns a Map; an empty Map says nothing. Read the comment at the top of the editor for the exact variable names.</p>
<table>
  <thead>
      <tr>
          <th>Handler</th>
          <th>Fires when</th>
          <th>Variables</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Welcome</td>
          <td>User subscribes or returns</td>
          <td><code>newuser</code>, <code>user</code></td>
      </tr>
      <tr>
          <td>Mention</td>
          <td>Bot is mentioned</td>
          <td><code>message</code>, <code>mentions</code>, <code>user</code>, <code>chat</code></td>
      </tr>
      <tr>
          <td>Participation</td>
          <td>A person writes in a chat the bot is in</td>
          <td><code>operation</code>, <code>data</code>, <code>chat</code></td>
      </tr>
      <tr>
          <td>Incoming Webhook</td>
          <td>HTTP POST to the bot&rsquo;s incoming URL</td>
          <td><code>http_method</code>, <code>params</code>, <code>headers</code>, <code>body</code></td>
      </tr>
      <tr>
          <td>Message action</td>
          <td>Click on a message</td>
          <td><code>message</code>, <code>messages</code>, <code>attachments</code>, <code>user</code>, <code>mentions</code>, <code>chat</code>, <code>location</code></td>
      </tr>
  </tbody>
</table>
<h3 id="mention-command-router">Mention Command Router</h3>
<pre tabindex="0"><code class="language-deluge" data-lang="deluge">response = Map();
raw = message.toString().trim();       // mention already removed
cmd = raw;
rest = &#34;&#34;;
if(raw.contains(&#34; &#34;))
{
	cmd = raw.getPrefix(&#34; &#34;);
	rest = raw.getSuffix(&#34; &#34;);
}
cmd = cmd.toLowerCase();
if(cmd == &#34;ping&#34;)
{
	text = &#34;pong&#34;;
}
else if(cmd == &#34;status&#34;)
{
	text = &#34;All good. Args: &#34; + rest;
}
else
{
	text = &#34;Commands: *ping*, *status &lt;text&gt;*&#34;;
}
response.put(&#34;text&#34;, text);
return response;
</code></pre><h3 id="echo-handler-see-what-you-really-receive">Echo Handler (see what you really receive)</h3>
<pre tabindex="0"><code class="language-deluge" data-lang="deluge">response = Map();
out = &#34;message: &#34; + ifnull(message, &#34;-&#34;).toString() + &#34;\n&#34; + &#34;user: &#34; + ifnull(user, &#34;-&#34;).toString() + &#34;\n&#34; + &#34;chat: &#34; + ifnull(chat, &#34;-&#34;).toString();
info out;                                // shows in the execution log
if(out.length() &gt; 3500)
{
	out = out.subString(0, 3500);
}
response.put(&#34;text&#34;, out);
return response;
</code></pre><h3 id="handy-fields">Handy Fields</h3>
<pre tabindex="0"><code class="language-deluge" data-lang="deluge">chat.get(&#34;chat_type&#34;)                    // &#34;channel&#34;, &#34;thread&#34;, ...
chat.get(&#34;channel_unique_name&#34;)          // in a channel
chat.get(&#34;parent_resource&#34;).toString().toMap().get(&#34;channel_unique_name&#34;)   // in a thread
user.get(&#34;id&#34;).toString()
user.get(&#34;first_name&#34;)
</code></pre><h3 id="posting-from-code">Posting From Code</h3>
<pre tabindex="0"><code class="language-deluge" data-lang="deluge">// into a channel as the bot
zoho.cliq.postToChannelAsBot(&#34;channel_unique_name&#34;, &#34;mybuddy&#34;, &#34;text&#34;);

// debugging: write to the execution log
info &#34;value: &#34; + someVar;
</code></pre><h2 id="webhooks--tokens">Webhooks &amp; Tokens</h2>
<p>A webhook token (Bots &amp; Tools &gt; Webhook Tokens) authenticates inbound calls as the user who generated it. Treat it like a password: store it outside git (<code>chmod 600</code> file), rotate by generating a new one.</p>
<div class="highlight"><pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:2;-o-tab-size:2;tab-size:2;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8b949e;font-style:italic"># Post to the bot&#39;s incoming webhook (handler receives the JSON as `body`)</span>
</span></span><span style="display:flex;"><span>curl -s -X POST <span style="color:#a5d6ff">&#34;https://cliq.zoho.in/api/v2/bots/mybuddy/incoming?zapikey=</span><span style="color:#79c0ff">$CLIQ_KEY</span><span style="color:#a5d6ff">&#34;</span> <span style="color:#79c0ff">\
</span></span></span><span style="display:flex;"><span><span style="color:#79c0ff"></span>  -H <span style="color:#a5d6ff">&#39;Content-Type: application/json&#39;</span> <span style="color:#79c0ff">\
</span></span></span><span style="display:flex;"><span><span style="color:#79c0ff"></span>  -d <span style="color:#a5d6ff">&#39;{&#34;title&#34;:&#34;Build finished&#34;,&#34;detail&#34;:&#34;main passed in 4m12s&#34;}&#39;</span>
</span></span></code></pre></div><div class="highlight"><pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:2;-o-tab-size:2;tab-size:2;"><code class="language-bash" data-lang="bash"><span style="display:flex;"><span><span style="color:#8b949e;font-style:italic"># Same from a script, building safe JSON with jq</span>
</span></span><span style="display:flex;"><span>jq -n --arg t <span style="color:#a5d6ff">&#34;</span><span style="color:#79c0ff">$1</span><span style="color:#a5d6ff">&#34;</span> --arg d <span style="color:#a5d6ff">&#34;</span><span style="color:#a5d6ff">${</span><span style="color:#79c0ff">2</span><span style="color:#ff7b72">:-</span><span style="color:#a5d6ff">}</span><span style="color:#a5d6ff">&#34;</span> <span style="color:#a5d6ff">&#39;{title:$t, detail:$d}&#39;</span> |
</span></span><span style="display:flex;"><span>curl -s -o /dev/null -w <span style="color:#a5d6ff">&#39;HTTP %{http_code}\n&#39;</span> -X POST <span style="color:#79c0ff">\
</span></span></span><span style="display:flex;"><span><span style="color:#79c0ff"></span>  <span style="color:#a5d6ff">&#34;https://cliq.zoho.in/api/v2/bots/mybuddy/incoming?zapikey=</span><span style="color:#79c0ff">$CLIQ_KEY</span><span style="color:#a5d6ff">&#34;</span> <span style="color:#79c0ff">\
</span></span></span><span style="display:flex;"><span><span style="color:#79c0ff"></span>  -H <span style="color:#a5d6ff">&#39;Content-Type: application/json&#39;</span> --data @-
</span></span></code></pre></div><p>HTTP 200 means the webhook accepted the call, not that the post worked: check the handler log.</p>
<h3 id="incoming-webhook-handler-router">Incoming Webhook Handler (router)</h3>
<pre tabindex="0"><code class="language-deluge" data-lang="deluge">response = Map();
raw = body.toString();
if(!raw.trim().startsWith(&#34;{&#34;))
{
	// another service&#39;s event: echo it while you learn its shape
	if(raw.length() &gt; 3000)
	{
		raw = raw.subString(0, 3000);
	}
	zoho.cliq.postToChannelAsBot(&#34;sandbox_channel&#34;, &#34;mybuddy&#34;, &#34;Event:\n&#34; + raw);
	return response;
}
payload = body.toMap();
if(payload.get(&#34;chat_id&#34;) != null)
{
	// post text into a chat or thread as the bot, through the connection
	msg = Map();
	msg.put(&#34;text&#34;, payload.get(&#34;text&#34;).toString());
	hdr = Map();
	hdr.put(&#34;Content-Type&#34;, &#34;application/json&#34;);
	r = invokeurl
	[
		url: &#34;https://cliq.zoho.in/api/v2/chats/&#34; + payload.get(&#34;chat_id&#34;).toString() + &#34;/message?bot_unique_name=mybuddy&#34;
		type: POST
		parameters: msg.toString()
		headers: hdr
		connection: &#34;myconnection&#34;
	];
	if(r.toString().toLowerCase().contains(&#34;error&#34;))
	{
		response.put(&#34;text&#34;, &#34;post failed: &#34; + r.toString());
	}
	return response;
}
if(payload.get(&#34;title&#34;) != null)
{
	zoho.cliq.postToChannelAsBot(&#34;sandbox_channel&#34;, &#34;mybuddy&#34;, &#34;*&#34; + payload.get(&#34;title&#34;) + &#34;*\n&#34; + payload.get(&#34;detail&#34;));
}
return response;
</code></pre><h3 id="calling-your-own-service-from-cliq">Calling Your Own Service From Cliq</h3>
<pre tabindex="0"><code class="language-deluge" data-lang="deluge">mh = Map();
mh.put(&#34;X-My-Secret&#34;, &#34;PASTE_SHARED_SECRET&#34;);     // keep real secrets out of git
mh.put(&#34;Content-Type&#34;, &#34;application/json&#34;);
res = invokeurl
[
	url: &#34;https://example.com/hook&#34;
	type: POST
	parameters: payload.toString()
	headers: mh
];
info res;
</code></pre><h2 id="connections">Connections</h2>
<p>A connection is a named credential: put <code>connection: &quot;name&quot;</code> in <code>invokeurl</code> and Zoho adds and refreshes the token. The name is the link name shown in the console.</p>
<div class="highlight"><pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:2;-o-tab-size:2;tab-size:2;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>Kinds         Zoho services (Cliq, Desk, CRM, Creator, Catalyst), prebuilt third-party (GitHub, Google, Slack),
</span></span><span style="display:flex;"><span>              custom (OAuth 2 client id and secret, or an API key)
</span></span><span style="display:flex;"><span>Create        Bots &amp; Tools &gt; Connections &gt; create &gt; pick service &gt; name &gt; scopes &gt; authorise
</span></span><span style="display:flex;"><span>Identity      calls run as the authorising user; use a dedicated account for production
</span></span><span style="display:flex;"><span>Login user    option &#34;use credentials of login user&#34;: each user authorises their own account
</span></span><span style="display:flex;"><span>Scopes        ZohoCliq.Messages.READ (read threads), ZohoCliq.Webhooks.CREATE (post, start threads)
</span></span><span style="display:flex;"><span>New scope     reauthorise the connection
</span></span></code></pre></div><pre tabindex="0"><code class="language-deluge" data-lang="deluge">// GET through a connection
res = invokeurl
[
	url: &#34;https://cliq.zoho.in/api/v2/chats/&#34; + chatId + &#34;/messages?limit=100&#34;
	type: GET
	connection: &#34;myconnection&#34;
];
info res;
</code></pre><pre tabindex="0"><code class="language-deluge" data-lang="deluge">// create a GitHub issue from a message through another connection
issue = Map();
issue.put(&#34;title&#34;, &#34;From Cliq&#34;);
issue.put(&#34;body&#34;, message.get(&#34;text&#34;).toString());
hdr = Map();
hdr.put(&#34;Content-Type&#34;, &#34;application/json&#34;);
r = invokeurl
[
	url: &#34;https://api.github.com/repos/OWNER/REPO/issues&#34;
	type: POST
	parameters: issue.toString()
	headers: hdr
	connection: &#34;githubcon&#34;
];
info r;                                  // a 200 with an error body is common: always log
</code></pre><h3 id="cliq-rest-through-a-connection">Cliq REST Through a Connection</h3>
<table>
  <thead>
      <tr>
          <th>Job</th>
          <th>Call</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Recent messages of a chat or thread</td>
          <td><code>GET /api/v2/chats/{chat_id}/messages?limit=100</code></td>
      </tr>
      <tr>
          <td>One message</td>
          <td><code>GET /api/v2/chats/{chat_id}/messages/{message_id}</code></td>
      </tr>
      <tr>
          <td>The message a thread started from</td>
          <td><code>GET /api/v3/threads/{thread_chat_id}/messages/main</code></td>
      </tr>
      <tr>
          <td>Post to a chat or thread (shows the connection owner)</td>
          <td><code>POST /api/v3/chats/{chat_id}/messages</code> <code>{&quot;text&quot;:&quot;...&quot;}</code></td>
      </tr>
      <tr>
          <td>Post as the bot</td>
          <td><code>POST /api/v2/chats/{chat_id}/message?bot_unique_name={bot}</code> <code>{&quot;text&quot;:&quot;...&quot;}</code></td>
      </tr>
      <tr>
          <td>Start a thread under a channel message</td>
          <td><code>POST /api/v3/channelsbyname/{channel}/messages</code> <code>{&quot;text&quot;:&quot;...&quot;,&quot;thread_message_id&quot;:&quot;&lt;id&gt;&quot;}</code></td>
      </tr>
  </tbody>
</table>
<p>Useful message keys: <code>content.text</code>, <code>sender.id</code> (bots start with <code>b-</code>), <code>type</code>, <code>thread_information.chat_id</code>, <code>time</code>, <code>id</code>.</p>
<h2 id="message-actions">Message Actions</h2>
<p>Console: Bots &amp; Tools &gt; Message Actions &gt; create &gt; set access &gt; edit code. A generic name (for example &ldquo;Buddy&rdquo;) lets you add more actions later. The returned <code>text</code> is shown only to the person who clicked.</p>
<pre tabindex="0"><code class="language-deluge" data-lang="deluge">response = Map();
if(chat.get(&#34;chat_type&#34;) != &#34;channel&#34;)
{
	response.put(&#34;text&#34;, &#34;Use this on a channel message.&#34;);
	return response;
}
channelName = ifnull(chat.get(&#34;channel_unique_name&#34;), &#34;&#34;).toString();
chatId = chat.get(&#34;id&#34;).toString();
msgId = message.get(&#34;id&#34;).toString();
hdr = Map();
hdr.put(&#34;Content-Type&#34;, &#34;application/json&#34;);

// 1. use the message&#39;s thread, or start one under it
threadChat = &#34;&#34;;
ti = message.get(&#34;thread_information&#34;);
if(ti != null)
{
	threadChat = ti.toString().toMap().get(&#34;chat_id&#34;).toString();
}
else
{
	body = Map();
	body.put(&#34;text&#34;, &#34;#Noted&#34;);
	body.put(&#34;thread_message_id&#34;, msgId);
	invokeurl
	[
		url: &#34;https://cliq.zoho.in/api/v3/channelsbyname/&#34; + channelName + &#34;/messages&#34;
		type: POST
		parameters: body.toString()
		headers: hdr
		connection: &#34;myconnection&#34;
	];
	// 2. re-read the message to learn the new thread&#39;s chat id
	r2 = invokeurl
	[
		url: &#34;https://cliq.zoho.in/api/v2/chats/&#34; + chatId + &#34;/messages/&#34; + msgId
		type: GET
		connection: &#34;myconnection&#34;
	];
	ti2 = r2.toString().toMap().get(&#34;thread_information&#34;);
	if(ti2 != null)
	{
		threadChat = ti2.toString().toMap().get(&#34;chat_id&#34;).toString();
	}
}
if(threadChat == &#34;&#34;)
{
	response.put(&#34;text&#34;, &#34;Could not find the thread id.&#34;);
	return response;
}
response.put(&#34;text&#34;, &#34;Done.&#34;);
return response;
</code></pre><p>To post as the bot from a message action, call the bot&rsquo;s own incoming webhook (the connection call posts as its owner and ignores the bot name):</p>
<pre tabindex="0"><code class="language-deluge" data-lang="deluge">hook = Map();
hook.put(&#34;chat_id&#34;, threadChat);
hook.put(&#34;text&#34;, &#34;#Checking&#34;);
hook.put(&#34;bot_unique_name&#34;, &#34;mybuddy&#34;);
hdr = Map();
hdr.put(&#34;Content-Type&#34;, &#34;application/json&#34;);
invokeurl
[
	url: &#34;https://cliq.zoho.in/api/v2/bots/mybuddy/incoming?zapikey=PASTE_WEBHOOK_TOKEN&#34;
	type: POST
	parameters: hook.toString()
	headers: hdr
];
</code></pre><h3 id="why-a-message-action-instead-of-a-mention">Why a Message Action Instead of a Mention</h3>
<div class="highlight"><pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:2;-o-tab-size:2;tab-size:2;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>A mention as the first message of a new thread is never delivered to the bot.
</span></span><span style="display:flex;"><span>The action works on the message itself, can create the thread, and needs no typing.
</span></span></code></pre></div><h2 id="limits">Limits</h2>
<div class="highlight"><pre tabindex="0" style="color:#e6edf3;background-color:#0d1117;-moz-tab-size:2;-o-tab-size:2;tab-size:2;"><code class="language-text" data-lang="text"><span style="display:flex;"><span>Messages posted by other bots or integrations never reach a handler you can write.
</span></span><span style="display:flex;"><span>  Use a message action (click) or a scheduled job that reads the channel through a connection.
</span></span><span style="display:flex;"><span>A bot cannot start a thread: the first message of a thread shows the connection owner.
</span></span><span style="display:flex;"><span>A message posted as a bot never returns its id: post by chat id through a connection.
</span></span><span style="display:flex;"><span>A connection call ignores the bot name; the v2 chat endpoint with ?bot_unique_name= honours it.
</span></span><span style="display:flex;"><span>A channel can hold at most 10 bots.
</span></span><span style="display:flex;"><span>Access is by channel, not by user: keep an allowed-channels list and check it in the handler.
</span></span></code></pre></div><h2 id="troubleshooting">Troubleshooting</h2>
<table>
  <thead>
      <tr>
          <th>Symptom</th>
          <th>Cause</th>
          <th>Fix</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td><code>Variable 'x' is not defined</code> on save</td>
          <td>Guessed variable name</td>
          <td>Use the names in the editor&rsquo;s top comment</td>
      </tr>
      <tr>
          <td>Webhook returns 200, nothing in Cliq</td>
          <td>200 only means accepted</td>
          <td>Check the handler log; bot needs channel membership</td>
      </tr>
      <tr>
          <td>First mention in a new thread does nothing</td>
          <td>Not delivered to bots</td>
          <td>Use a message action</td>
      </tr>
      <tr>
          <td>Invalid or expired token</td>
          <td>Authoriser revoked or changed password</td>
          <td>Reauthorise the connection</td>
      </tr>
      <tr>
          <td>Permission error on a call</td>
          <td>Scope missing when authorised</td>
          <td>Add the scope, reauthorise</td>
      </tr>
      <tr>
          <td>Connection not found</td>
          <td>Wrong link name</td>
          <td>Copy the name from the console</td>
      </tr>
      <tr>
          <td>Post shows your name, not the bot&rsquo;s</td>
          <td>Connection posts show the owner</td>
          <td><code>?bot_unique_name=</code> on the v2 chat endpoint, or <code>postToChannelAsBot</code></td>
      </tr>
      <tr>
          <td>Bot&rsquo;s own status messages read back as replies</td>
          <td>They look human when posted through a connection</td>
          <td>Start them with a marker such as <code>*#</code> and skip those</td>
      </tr>
      <tr>
          <td>Ids contain <code>%20</code></td>
          <td>Cliq encodes spaces in some ids</td>
          <td>Normalise ids before storing</td>
      </tr>
      <tr>
          <td>Secret leaked into a chat</td>
          <td>Filled handler pasted as text</td>
          <td>Rotate it, and share filled handlers only by clipboard</td>
      </tr>
  </tbody>
</table>
<h2 id="quick-reference">Quick Reference</h2>
<table>
  <thead>
      <tr>
          <th>Item</th>
          <th>Value</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td>Bot incoming URL</td>
          <td><code>https://cliq.zoho.in/api/v2/bots/{bot}/incoming?zapikey={token}</code></td>
      </tr>
      <tr>
          <td>Webhook token limit</td>
          <td>5 per user</td>
      </tr>
      <tr>
          <td>Post as bot (Deluge)</td>
          <td><code>zoho.cliq.postToChannelAsBot(channel, bot, text)</code></td>
      </tr>
      <tr>
          <td>Use a connection</td>
          <td><code>invokeurl [ url: ... type: GET connection: &quot;name&quot; ]</code></td>
      </tr>
      <tr>
          <td>Debug</td>
          <td><code>info value;</code> then read the execution log</td>
      </tr>
      <tr>
          <td>Reply</td>
          <td><code>response = Map(); response.put(&quot;text&quot;, &quot;...&quot;); return response;</code></td>
      </tr>
      <tr>
          <td>Bot unique name</td>
          <td>letters, digits, underscore; no hyphens</td>
      </tr>
  </tbody>
</table>
<h2 id="see-also">See Also</h2>
<ul>
<li><a href="https://www.zoho.com/cliq/help/platform/bots.html">Bots</a> and <a href="https://www.zoho.com/cliq/help/platform/bothandlers.html">Bot handlers</a></li>
<li><a href="https://www.zoho.com/cliq/help/platform/bot-mentionshandler.html">Mentions handler</a>, <a href="https://www.zoho.com/cliq/help/platform/bot-participation-handler.html">Participation handler</a>, <a href="https://www.zoho.com/cliq/help/platform/bot-incomingwebhookhandler.html">Incoming webhook handler</a></li>
<li><a href="https://www.zoho.com/cliq/help/platform/webhook-tokens.html">Webhook tokens</a></li>
<li><a href="https://www.zoho.com/cliq/help/platform/messageactions.html">Message actions</a> and <a href="https://www.zoho.com/cliq/help/platform/messageaction-handlers.html">handler</a></li>
<li><a href="https://www.zoho.com/cliq/help/platform/connections.html">Connections in Cliq</a>, <a href="https://www.zoho.com/deluge/help/connections.html">Deluge connections</a></li>
<li><a href="https://www.zoho.com/cliq/help/platform/invoke-url.html">Invoke URL in Cliq</a>, <a href="https://www.zoho.com/deluge/help/webhook/invokeurl-api-task.html">Deluge invokeURL</a></li>
<li><a href="https://www.zoho.com/cliq/help/platform/cliq-responses.html">Cliq responses</a> (cards, buttons, forms, banners)</li>
<li><a href="https://www.zoho.com/cliq/help/restapi/v2/">REST API v2</a>, <a href="https://www.zoho.com/cliq/help/restapi/v3/messages/">Messages v3</a></li>
<li><a href="https://qref.eknath.dev/tools/curl/">curl</a> and <a href="https://qref.eknath.dev/tools/jq/">jq</a> for testing webhooks</li>
</ul>
]]></content:encoded></item></channel></rss>