Create macro

Add a macro (saved reply) to Settings > General > Macros.

POST https://cotlet.dev/api/v1/tidio/macros

write

Creates a macro with a text, an optional name for finding it by typing a slash in a chat, and an optional label. A macro reaches no customer until someone sends it, and it is removed in one click in Settings, so it needs no confirmation by default. It needs the Growth plan or higher.

Parameters

Parameters: create_macro
NameTypeDescription
text string required string Macro text.
name string string Name used to find the macro by typing.
label string string Label used to group macros.
private boolean boolean true keeps the macro private to you. Default: false.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/tidio/macros \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"text"}'
Python
result = client.call("tidio", "create_macro", {"text":"text"})
Node.js
const result = await cotlet.call('tidio', 'create_macro', {"text":"text"});
CLI
cotlet call tidio create_macro --data '{"text":"text"}'

Example response

JSON

{
  "name": "Shipping time",
  "label": "Orders",
  "private": false,
  "status": "created"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.