Skip to content

AFM Specification v0.4.0

Latest

Choose a tag to compare

@MaryamZi MaryamZi released this 20 Oct 05:43
face6e9

AFM v0.4.0 adds platformchat, a new interface type for interacting with agents directly via external messaging and collaboration platforms such as Slack, Google Chat, and Telegram.

What's in v0.4.0

Platformchat interface

type: platformchat exposes an agent as a chat participant on an external platform. A platform field identifies the platform (e.g., slack, gchat, telegram), and a mode field selects one of three variants, since platforms deliver events differently:

  • notification: the platform pushes events over HTTP and the runtime acknowledges them. The agent replies out-of-band, for example by posting to a Slack thread through an MCP tool.
  • request: the platform pushes events over HTTP and expects the agent's reply in the HTTP response. The shape of that response is described by signature.output.
  • polling: the runtime fetches events from the platform on an interval, with optional interval and timeout. There is no inbound endpoint, so no public URL is needed. Credentials for these outbound calls are set via authentication.

All modes support a prompt template built from the incoming event (${http:payload.*}, ${http:header.*}) and a platform_config block for platform-specific settings such as signing secrets. HTTP-based modes default to the /{platform} path (e.g., /slack).

See the interfaces section of the specification, which has examples for Google Chat (request), Slack (notification), and Telegram (polling).

Other changes

  • Interface schemas by type: the interfaces section now gives a separate schema for each interface type and each platformchat mode, and states which fields each one allows.
  • New example: a Slack Assistant that replies in-thread via the Slack MCP server.
  • Published paper: the AFM paper is now in the CEUR Workshop Proceedings (Vol. 4266) as part of the IUI 2026 workshop proceedings. See the Paper page, and use Cite this repository on GitHub for the citation.

Resources

Full Changelog: v0.3.0...v0.4.0