Mega icon

Mega

Work with Mega API

Agent Bot → Create

AI-generated

Summary

Create a new Agent Bot by specifying its name, webhook URL, optional description, avatar URL, type, and configuration JSON, receiving the newly created Agent Bot details in response.

Inputs

  • Name (required) — Name of the agent bot to create.
  • Outgoing URL (required) — Webhook URL associated with the agent bot.
  • Description — Optional textual description of the agent bot.
  • Avatar URL — Optional URL pointing to the agent bot's avatar image.
  • Bot Type — Numerical bot type identifier; 0 represents webhook bots.
  • Bot Config — JSON object defining configuration parameters for the agent bot.

Output shape

a single JSON object representing the created Agent Bot, including its configured properties and identifiers as returned by the Mega API

The output payload contains the resulting Agent Bot details as returned upon successful creation. No pagination applies.

Links

Discussion