happ_text_campaign_create
Создаёт текстовую Viber-рассылку через DirectHub-интеграцию ассистента. Кампания создаётся черновиком и НЕ отправляется — запуск отдельным happ_text_campaign_start. text — шаблон: {{плейсхолдеры}} подставляются из variables каждого получателя. recipients можно передать сразу (будут добавлены втор...
This record as markdown: /tools/happ-ai-platform-mcp/happ-text-campaign-create.md
What happ_text_campaign_create does on Platform
AI agents use happ_text_campaign_create to create or update resources in Platform, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Platform environment.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Название рассылки |
text | string | — | Текст сообщения, поддерживает {{плейсхолдеры}}. Не указывать в шаблонных режимах и в рассылке из одной картинки |
imageUrl | string | — | Ссылка на картинку рекламного сообщения — получите её из happ_text_campaign_image_upload |
sendMode | string | — | Через какой эндпоинт DirectHub слать (по умолчанию session). session — только текст, бесплатно внутри открытого диалога, вне его уходит как платное рекламное; p |
timezone | string | — | IANA-таймзона окон/даты старта (например Europe/Kyiv) |
actionUrl | string | — | Куда ведёт кнопка; работает только вместе с actionCaption |
companyId | string | Yes | ID компании |
startDate | string | — | Первый день отправки (YYYY-MM-DD в таймзоне кампании); без него — сразу после start |
recipients | array | — | Получатели (до 10 000 за запрос) |
assistantId | string | Yes | ID ассистента, через чей DirectHub шлём и чей AI ведёт ответы |
timeWindows | array | — | Дневные окна отправки; пусто — слать в любое время, пока кампания запущена |
actionCaption | string | — | Надпись на кнопке; работает только вместе с actionUrl |
Parameters from the server's own tool schema.
Why happ_text_campaign_create is rated Medium
An AI agent can call happ_text_campaign_create faster than any human can review: one bad instruction and it creates or modifies resources in Platform by the hundred, each call as confident as the last.
Risk signalsHigh parameter count (17 properties)
Attacks that exploit this kind of access
The rule that runs happ_text_campaign_create safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Platform, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For happ_text_campaign_create, this is the rule to start with:
happ_text_campaign_create stays usable, but capped: an agent stuck in a loop can't make hundreds of changes a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Platform, apply this rule, and every happ_text_campaign_create call is checked against it from then on.
Questions about happ_text_campaign_create
Создаёт текстовую Viber-рассылку через DirectHub-интеграцию ассистента. Кампания создаётся черновиком и НЕ отправляется — запуск отдельным happ_text_campaign_start. text — шаблон: {{плейсхолдеры}} подставляются из variables каждого получателя. recipients можно передать сразу (будут добавлены вторым запросом; при ошибке добавления кампания останется черновиком — дошлите happ_text_campaign_add_recipients). Ответ клиента на рассылку подхватывает AI ассистента. Требование: у ассистента подключён активный DirectHub. Режимы отправки: session — только текст, бесплатно внутри открытого диалога, вне его уходит как платное рекламное; promotional — рекламное без шаблона: текст, картинка и кнопка, модерация не нужна; promotional_template / transactional — по шаблону, заведённому и отмодерированному в кабинете DirectHub (happ_directhub_templates_list), текст и картинка живут внутри шаблона. DirectHub принимает рекламное сообщение ровно в четырёх видах: только текст; текст + кнопка; текст + картинка + кнопка; только картинка. Картинка БЕЗ кнопки не принимается. (POST /text-campaigns). It is categorised as a Write tool in the Platform MCP Server, which means it can create or modify data. Consider rate limits to prevent runaway writes.
happ_text_campaign_create accepts 12 parameters: name, text, imageUrl, sendMode, timezone, actionUrl, companyId, startDate, recipients, assistantId, timeWindows, actionCaption. Required: name, companyId, assistantId. The full parameter table on this page comes from the server's own tool schema.
Register the Platform MCP server in PolicyLayer and add a rule for happ_text_campaign_create: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Platform. Nothing to install.
happ_text_campaign_create is a Write tool with medium risk. Write tools should be rate-limited to prevent accidental bulk modifications.
Yes. Add a rate_limit block to the happ_text_campaign_create rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for happ_text_campaign_create. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
happ_text_campaign_create is provided by the Platform MCP server (@happ-ai/platform-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Platform, and thousands of servers like it.
This server
Across the catalogue