Update macro

Edit, archive or unarchive a macro.

MCP tool gorgias_write → update_macro

write Confirm

Changes the name, text or archived state of a macro. Needs a Lead or Admin user. A macro change affects every agent and every ticket it is applied to later. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: update_macro
NameTypeDescription
macro_id integer required integer Macro ID from list_macros.
name string string New name.
text string string New reply text.
archived boolean boolean true archives, false unarchives.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "gorgias_write",
    "arguments": {
      "operation": "update_macro",
      "arguments": {
        "macro_id": 3021,
        "archived": true
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "macro_id": 3021,
    "name": "Black Friday 2024 shipping",
    "archived": true
  },
  "isError": false
}

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.