gateways/ · Body: the inbound prompt
A gateway has two prompts, each an optional override you toggle on (see Prompting a Gateway):
- The inbound prompt — routing and scope — comes from the MDX body.
- The outbound prompt — what 2501 writes back when a job finishes — is set in frontmatter via
outbound_prompt.
Frontmatter
Fields NOT supported
id,tenant_id,org_id,created_at,updated_at— system-set- inbound prompt as a frontmatter field — it comes from the MDX body, not frontmatter (use
inbound_override_enabledto toggle the override) - Webhook registrations — managed separately via
2501 infra webhook
Metadata by type
ServiceNow (type: servicenow)
Runner (type: runner)
No required metadata. Used only for sandbox benchmarking via 2501 runner start.
Custom-built types
If your tenant has a custom gateway, the metadata schema is provided by your account team. The CLI does not validate custom metadata keys — anything you put undermetadata: round-trips verbatim.
Example
gateways/servicenow.mdx
Gotchas
typeis fixed. Adding a new gateway type (a vendor we don’t have an integration for) requires a 2501 release — contact your account team. Configuring an existing type is pure MDX.- Webhook records are separate. A gateway’s MDX file doesn’t manage its webhooks. Recreate webhooks with
2501 infra webhook create --gateway-id ...(see Webhooks). - One gateway per org per type. ServiceNow + Runner in the same org is fine; two ServiceNow gateways in the same org is not.

