Invoke Agent
Overview
You can use this Snap to invoke the Amazon Bedrock Invoke Agent operation on the Amazon Bedrock service.

- This is a Transform-type Snap.
Works in Ultra Tasks
Prerequisites
- Amazon Bedrock Account
- Create an Agent in Amazon Bedrock.
Snap views
| Type | Description | Examples of upstream and downstream Snaps |
|---|---|---|
| Input |
This Snap supports a maximum of one binary or document input view.
The binary input is inserted into the Prompt field.
Note: If you select the Binary input view, the Prompt field is hidden.
|
|
| Output | This Snap has at the most one document output view. The output contains citations, text response, metadata, and traces if the Enable trace option is selected. | Mapper |
| Learn more about Error handling. | ||
Snap settings
- Expression icon (
): Allows using JavaScript syntax to access SnapLogic Expressions to set field values dynamically (if enabled). If disabled, you can provide a static value. Learn more.
- SnapGPT (
): Generates SnapLogic Expressions based on natural language using SnapGPT. Learn more.
- Suggestion icon (
): Populates a list of values dynamically based on your Snap configuration. You can select only one attribute at a time using the icon. Type into the field if it supports a comma-separated list of values.
- Upload
: Uploads files. Learn more.
| Field/Field set | Type | Description |
|---|---|---|
| Label | String |
Required. Specify a unique name for the Snap. Modify this to be more appropriate, especially if more than one of the same Snaps is in the pipeline. Default value: Invoke Agent Example: Automated Incident Response |
| Agent ID | String/Expression/ Suggestion |
Required. Specify the unique identifier of the agent to use. Default value: N/A Example: QA88RLKS:genaiappbuilder-agent-1 |
| Agent alias ID | String/Expression |
Required. Specify the corresponding alias ID of the agent. Default value: N/A Example: STATAILSDS:AgentTestAlias |
| Prompt | String/Expression |
Appears when you select Document as the Input type. Required. Specify the prompt to send to the Invoke Agent endpoint as the input text. Default value: N/A Example: $msg |
| Session ID | String/Expression |
Specify the session's unique identifier. The ID must be a minimum of 2 and a maximum of 100 characters.
Note: You must use the same value to continue the same conversation across requests. If you do not provide a value, a random UUID is generated and used as the Session ID.
Default value: N/A Example: $msg |
| Advanced configuration | Use this field set to configure the options to invoke the agent. | |
| Enable trace | Checkbox/Expression | Select this checkbox to enable trace logging to trace the agent’s reasoning process. Default status: Deselected |
| Snap execution | Dropdown list |
Choose one of the three modes in
which the Snap executes. Available options are:
Default value: Validate & Execute Example: Execute only |
Troubleshooting
Invalid configuration to execute invoke agent.
The value for Prompt field is missing.
Specify a Prompt and try again.