AI Format Message logo

Catalog action Utility

Reformat raw blockchain/trading data into clean, human-readable message text using AI. Shortens hex addresses, formats numbers, translates jargon, and styles output for Slack/Discord/Telegram. Ideal for: message formatting, alert messages, trade notifications, event summaries before sending to messaging platforms.

At a Glance

FieldValue
Action IDai-format-message
CategoryUtility
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagsai, notification, utility, slack, discord, telegram

Payload Schema

FieldTypeRequiredDescription
rawTextstring | object | arrayYesRaw text or structured event data to format. Can be a string, JSON object, or array from a previous workflow step.
eventTypestringNoDomain context hint for the AI formatter (e.g., 'prediction market order', 'token swap', 'price alert', 'DeFi position'). Helps produce more accurate formatting.
platformstringNoTarget messaging platform. Slack uses mrkdwn, Discord uses markdown, Telegram uses HTML. Default: 'general'

Result Schema

FieldTypeRequiredDescription
outputstringYesThe formatted, human-readable message text
modelstringYesThe model that was used
usageobjectNoToken usage statistics from OpenRouter

Examples

json
{ "type": "ai-format-message", "payload": { "rawText": "Workflow completed" }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I