Happ icon

Happ

Interact with the Happ Platform API: messenger chats, messages and AI assistants

Chat → Toggle AI Control

AI-generated

Summary

Enable or disable AI assistant handling for a Happ chat by sending a PATCH request to that chat’s AI-control endpoint.

Inputs

  • Chat ID (required) — Unique identifier of the chat to update.
  • AI Control Enabled (required) — Set to true to have the AI assistant handle the chat, or false to disable AI control.
  • AI Disable Reason — When disabling AI control, choose Auto or Manual. Defaults to Manual.

Output shape

A single API response item.

The operation uses PATCH /api/chats/{chatId}/ai-control and sends the enabled flag, plus the disable reason when provided. The exact response fields are not specified by the node.

Examples

Example 1: Disable AI control for a chat and record that it was disabled manually.

Set Chat ID, set AI Control Enabled to false, and set AI Disable Reason to Manual.

Example 2: Enable AI control for a chat.

Set Chat ID and set AI Control Enabled to true; the disable reason is hidden.

Links

Discussion