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.

FieldTypeRequiredDefaultConstraintsExample
region
AWS region (overrides connection).
stringNo———
model_id
Model id, e.g. anthropic.claude-3-5-sonnet-20241022-v2:0.
stringYes———
prompt
User prompt. Supports {{ }}.
stringYes———
system
Optional system prompt.
stringNo———
max_tokens
Max output tokens.
numberNo1024≥ 1—

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "max_tokens": 1024
}

Output

One shape.

result

FieldTypeExample
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.