# Inputs and triggers

Nodes that start a graph: run inputs, images, webhooks, schedules, queues and chat channels.

Source: https://glamorous-boar.cloudvent.net/nodes/inputs-and-triggers/

---

{/* Generated by scripts/agenticmind/generate-node-docs.mjs from the AgenticMind node registry. Do not edit by hand. */}

Every graph needs at least one way in. **Manual Input** and **Image Input** read fields of the run input (filled by Run inputs, Chat, an exported API or an MCP call). The four **trigger** nodes start runs from outside events; they listen only when `enabled` is ticked in the project's latest saved revision, and a manual run uses their `sample` event (marked `simulated: true`) so trigger graphs stay testable.

| Node | Category | Summary |
|---|---|---|
| [Chat Trigger](#chat-trigger) | Inputs & triggers | Starts a run for each Slack, Telegram, WhatsApp or email message, and replies with a run output. |
| [Image Input](#image-input) | Inputs & triggers | An image given when the graph runs (upload it in Run inputs or Chat), for vision models or OCR. |
| [Manual Input](#manual-input) | Inputs & triggers | Reads one field from the run input payload. |
| [Queue Trigger](#queue-trigger) | Inputs & triggers | Starts a run for each message on a Redis Stream or an Amazon SQS queue. |
| [Schedule Trigger](#schedule-trigger) | Inputs & triggers | Starts a run on a schedule (cron expression with a time zone, or every N minutes). |
| [Webhook Trigger](#webhook-trigger) | Inputs & triggers | Starts a run when an HTTP request arrives at this node's URL (token or HMAC protected). |
## Chat Trigger

`agenticmind.core.chat_trigger` · version 1.0.0

Starts a run for each Slack, Telegram, WhatsApp or email message, and replies with a run output.

**Typical use.** Turns a graph into a Slack, Telegram, WhatsApp or email bot. Every incoming message starts a run, and the output named in `reply_output` (default `answer`) is sent back. Chat platforms need a public HTTPS URL, so use a tunnel when running locally.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `payload` | Any | The event's data (request body, message, …) |
| `text` | String | The event as text (a chat message's text) |
| `event` | JSON | Metadata: kind, source, sender, received_at, … |

- **Control branches:** `done`
- **Permissions:** `network`, `credentials`
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `enabled` | boolean | `true` | Listen for events (applies to the saved revision). |
| `channel` | `slack` · `telegram` · `whatsapp` · `email` | `telegram` | Channel |
| `reply_output` | string | `answer` | Run output sent back as the reply (empty = do not reply). |
| `error_reply` | string | `Sorry, something went wrong. Please try again later.` | Error Reply |
| `slack_signing_secret` | secret ref |  | Slack app signing secret |
| `slack_bot_token` | secret ref |  | Slack bot token (xoxb-…) for replies |
| `slack_reply_in_thread` | boolean | `true` | Slack Reply In Thread |
| `telegram_bot_token` | secret ref |  | Telegram bot token from @BotFather |
| `telegram_secret_token` | secret ref |  | Secret checked in the X-Telegram-Bot-Api-Secret-Token header (set with setWebhook) |
| `whatsapp_verify_token` | secret ref |  | Webhook verify token you chose in Meta |
| `whatsapp_app_secret` | secret ref |  | Meta app secret (signature check) |
| `whatsapp_access_token` | secret ref |  | Access token for sending replies |
| `whatsapp_graph_version` | string | `v27.0` | Whatsapp Graph Version |
| `imap_host` | string |  | Imap Host |
| `imap_port` | integer | `993` | Imap Port |
| `email_username` | string |  | Email Username |
| `email_password` | secret ref |  | Mailbox password or app password |
| `imap_folder` | string | `INBOX` | Imap Folder |
| `poll_seconds` | integer | `60` | Poll Seconds |
| `smtp_host` | string |  | Smtp Host |
| `smtp_port` | integer | `587` | Smtp Port |
| `from_address` | string |  | Reply sender (default: the username). |
| `sample_text` | string | `Hi! What can you do?` | Message used when you run by hand. |

## Image Input

`agenticmind.core.image_input` · version 1.0.0

An image given when the graph runs (upload it in Run inputs or Chat), for vision models or OCR.

**Typical use.** Feeds an uploaded picture to a vision LLM (its `image` input) or to the OCR node. In the IDE, Run inputs shows an image picker and Chat shows an attach button whenever the graph has an Image Input.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `image` | Image |  |

- **Control branches:** `done`
- **Permissions:** `artifacts`
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `key` | string | `image` | Field name in the run input that holds the image (an uploaded file ID). |
| `default` | array |  | Image used when the run input does not provide one. |
| `required` | boolean | `true` | Required |

## Manual Input

`agenticmind.core.manual_input` · version 1.0.0

Reads one field from the run input payload.

**Typical use.** The entry point of most graphs. Each Manual Input reads one field (its `key`) from the run input, so the Run inputs tab, the Chat panel, an exported API endpoint and an MCP tool all fill it the same way. Set `value_type` to make the output port typed (String, Number, Boolean or JSON). Example: key `question` feeds an LLM prompt.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `value` | String |  |

- **Control branches:** `done`
- **Permissions:** none
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `key` | string | `input` | Name of the run input field this node reads. |
| `value_type` | `String` · `Number` · `Boolean` · `JSON` | `String` | Type of the value produced. |
| `default` | object |  | Used when the run input omits this field. |
| `required` | boolean | `true` | Fail the run if no value and no default. |

## Queue Trigger

`agenticmind.core.queue_trigger` · version 1.0.0

Starts a run for each message on a Redis Stream or an Amazon SQS queue.

**Typical use.** Consumes Redis Streams (consumer group, created if missing) or Amazon SQS (long polling). Use `acknowledge: on_success` when a failed run should leave the message for redelivery.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `payload` | Any | The event's data (request body, message, …) |
| `text` | String | The event as text (a chat message's text) |
| `event` | JSON | Metadata: kind, source, sender, received_at, … |

- **Control branches:** `done`
- **Permissions:** `network`, `credentials`
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `enabled` | boolean | `true` | Listen for events (applies to the saved revision). |
| `backend` | `redis` · `sqs` | `redis` | Redis Streams or Amazon SQS. |
| `redis_url` | string | `redis://localhost:6379/0` | Redis Url |
| `redis_password` | secret ref |  | Redis password (if not in the URL) |
| `stream` | string | `agenticmind:events` | Stream |
| `group` | string | `agenticmind` | Consumer group (created if missing). |
| `queue_url` | string |  | https://sqs.&lt;region&gt;.amazonaws.com/&lt;account&gt;/&lt;queue&gt; |
| `region` | string | `us-east-1` | Region |
| `access_key_id` | secret ref |  | AWS access key id (empty = default AWS credentials) |
| `secret_access_key` | secret ref |  | AWS secret access key |
| `endpoint_url` | string |  | For SQS-compatible services (e.g. LocalStack). |
| `max_messages` | integer | `10` | Max Messages |
| `acknowledge` | `on_start` · `on_success` | `on_start` | on_start: remove the message once its run starts. on_success: only after the run succeeds (a failed run leaves it for redelivery). |
| `sample` | object | `{"order_id":42,"status":"paid"}` |  |

## Schedule Trigger

`agenticmind.core.schedule_trigger` · version 1.0.0

Starts a run on a schedule (cron expression with a time zone, or every N minutes).

**Typical use.** Runs the graph on a cron expression (with an IANA time zone) or every N minutes. Example: `0 9 * * 1-5` in `Europe/London` runs at 09:00 on weekdays. Missed runs are not replayed after a restart.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `payload` | Any | The event's data (request body, message, …) |
| `text` | String | The event as text (a chat message's text) |
| `event` | JSON | Metadata: kind, source, sender, received_at, … |

- **Control branches:** `done`
- **Permissions:** none
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `enabled` | boolean | `true` | Listen for events (applies to the saved revision). |
| `mode` | `cron` · `interval` | `cron` | Mode |
| `cron` | string | `0 9 * * 1-5` | minute hour day-of-month month day-of-week, e.g. '\*/15 \* \* \* \*'. |
| `timezone` | string | `UTC` | IANA time zone for the cron expression, e.g. Europe/London. |
| `interval_minutes` | number | `60` | Interval Minutes |
| `payload` | object |  | Sent as the event payload on every run. |

## Webhook Trigger

`agenticmind.core.webhook_trigger` · version 1.0.0

Starts a run when an HTTP request arrives at this node's URL (token or HMAC protected).

**Typical use.** Starts a run whenever an HTTP request reaches `/api/triggers/<project>/<node>`. Pick `token` (Bearer or X-Webhook-Token) or `hmac` (GitHub-style signature) authentication, then `respond: wait` to answer the caller with the run's outputs. Tick `enabled` and save; the Trigger panel shows the URL.

*No data inputs.*

| Output | Type | Description |
|---|---|---|
| `payload` | Any | The event's data (request body, message, …) |
| `text` | String | The event as text (a chat message's text) |
| `event` | JSON | Metadata: kind, source, sender, received_at, … |

- **Control branches:** `done`
- **Permissions:** `credentials`
- **Execution policy:** timeout 30s, max attempts 1, idempotent

| Setting | Type | Default | Description |
|---|---|---|---|
| `enabled` | boolean | `true` | Listen for events (applies to the saved revision). |
| `auth` | `token` · `hmac` · `none` | `token` | token: callers send 'Authorization: Bearer &lt;secret&gt;' (or X-Webhook-Token). hmac: an HMAC-SHA256 of the raw body in a header (GitHub-style 'sha256=&lt;hex&gt;'). none: anyone with the URL. |
| `secret` | secret ref |  | Token or HMAC key, e.g. MY_WEBHOOK_SECRET |
| `signature_header` | string | `X-Hub-Signature-256` | Signature Header |
| `respond` | `ack` · `wait` | `ack` | ack: answer 202 at once. wait: run, then answer with the run's outputs. |
| `response_output` | string |  | With wait: return only this output key (empty = all outputs). |
| `wait_seconds` | number | `30` | Wait Seconds |
| `sample` | object | `{"hello":"world"}` | Payload used when you run the graph by hand. |
