MEGA icon

MEGA

Manage conversations, contacts, WhatsApp, Kanban CRM and Captain AI in MEGA

Actions417

Agent Bot (Account) → Create

AI-generated

Summary

Create an agent bot for the selected account. Choose Webhook or Typebot and provide that bot type’s required settings; optional trigger, expiration, ignored target, and additional fields can further configure it.

Inputs

  • Account (required) — Select an account from the list or enter its numeric ID.
  • Name (required) — Name of the agent bot.
  • Bot Type (required) — Choose Webhook or Typebot. Webhook bots send events to an outgoing URL; Typebot bots use a Typebot API URL and public flow name.
  • Outgoing URL — Required for Webhook bots; URL where bot events will be sent.
  • Typebot API URL — Required for Typebot bots; API URL of the Typebot instance.
  • Typebot Public Name — Required for Typebot bots; public name identifier of the Typebot flow.
  • Trigger Type — Choose All to trigger on all messages or Keyword to trigger on a matching keyword.
  • Trigger Operator — For keyword triggers, choose how to match the trigger value: contains, ends with, equals, regex, or starts with.
  • Trigger Value — Required when Trigger Type is Keyword; the keyword to match.
  • Finish Keyword — Optional keyword associated with finishing the bot interaction.
  • Expire in Minutes — Optional nonnegative expiration duration in minutes; defaults to 0.
  • Expiration Label — Optional label title to apply on expiration; select one or enter its exact name.
  • Ignored Targets — Optional list of target values for the bot to ignore.
  • Typebot API Token — Optional password field for the Typebot API token.
  • Default Delay Message — Optional nonnegative delay message setting for Typebot.
  • Debounce Time — Optional nonnegative debounce time for Typebot.
  • Additional Fields — Optional avatar URL, description, and setting to ignore group conversations.

Output shape

A single API response for the created agent bot.

The source pack lists the create implementation and its configuration helpers, but omits their bodies, so the exact response envelope and how each optional setting is sent cannot be determined from the provided source.

Links

Discussion