Invoke Model
bedrock.invoke_model
ActionAmazon Web Servicesconnection required
Calls Bedrock Runtime InvokeModel with the Claude messages format (SigV4).
Invoke an Anthropic Claude foundation model on AWS Bedrock.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- AWS Bedrock
- Secret shape
- {"access_key_id", "secret_access_key"}
- Config it needs
- region
- Resolved by
- config.connection_id, else node.connection_id
Configuration
5 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
region AWS region (overrides connection). | string | No | — | — | — |
model_id Model id, e.g. anthropic.claude-3-5-sonnet-20241022-v2:0. | string | Yes | — | — | — |
prompt User prompt. Supports {{ }}. | string | Yes | — | — | — |
system Optional system prompt. | string | No | — | — | — |
max_tokens Max output tokens. | number | No | 1024 | ≥ 1 | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"max_tokens": 1024
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
text | string | — |
input_tokens Tokens in the prompt, as the model reported them. | number | — |
output_tokens | number | — |
stop_reason | string | — |
{
"input_tokens": 0,
"output_tokens": 0,
"stop_reason": "",
"text": ""
}See Invoke Model run in a workflow.
In a technical demo we add the AWS Bedrock connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.