Set chat agent
set_chat_agentPut a company's agent into a group or a project's chat, or take it out, as the chat's settings do (PM-1247) — a group's administrators and, in a project's chat, whoever configures the project. Put in, it answers when it is mentioned ([~agent:product]) or its message is replied to, as the person who called it, and reads the chat only as far back as 'reads' says: 'after' (the default) — only what is written from now on — or 'last' with 'last' messages before each call, 1–30. Already in, nothing about it changes: take it out and put it in again to change what it reads. Taken out, it reads nothing more: a call still waiting is refused. Refused where the company's owner does not let that agent into chats (get_chat_agent_policy). Each put-in, take-out and call is a line in the company's journal, without the words.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| last | No | With reads='last': how many earlier messages, 1–30. | |
| agent | Yes | The agent, by key or handle — product, agent:analyst. | |
| reads | No | 'after' (default) or 'last'. | |
| chatId | Yes | The chat's id. | |
| remove | No | True takes it out. |