LLM AWS Bedrock Chain Chatbot Agent

This workflow automates text processing using AWS Bedrock’s Amazon.titan-text-lite-v1 model for generating responses to prompts. Key nodes include Manual Trigger (initiates workflow), Input Validation (sets and validates prompt), AWS Bedrock Chat (API interaction), AWS Bedrock Chat Model (configures model), Check Response (verifies output), Format Success Response, and Format Error Response (manages outputs). It leverages AWS Bedrock’s API for language processing tasks.\n\nSetup Requirements and Configuration: Install n8n by downloading from n8n.io for self-hosting or sign up at cloud.n8n.io for cloud setup. Follow installation prompts or create a cloud account. Obtain AWS credentials from console.aws.amazon.com: sign up, create an IAM user with Bedrock access, and retrieve the Access Key ID and Secret Access Key from the IAM dashboard under ‘Security Credentials.’ In n8n, import the provided JSON to create the workflow. Configure the AWS Bedrock Chat Model node by adding your AWS credentials under ‘Credentials’ > ‘AWS’ in n8n’s interface, ensuring the region supports Bedrock (e.g., us-east-1). Replace the Manual Trigger with a Webhook Trigger for automation: set its path to ‘bedrock-chat,’ ensure it accepts POST requests, and optionally enable header authentication with a secure key. Ensure sufficient server resources for cloud or self-hosted setups.\n\nTesting and Deployment Steps: Test by sending a POST request to the Webhook URL (after replacing Manual Trigger) using Postman. Example JSON body: {'prompt': 'What is 1+1?'} with the authentication header if enabled. Alternatively, use the Manual Trigger in n8n’s editor. The ‘Format Success Response’ node returns a 200 status with response, model (amazon.titan-text-lite-v1), and prompt_used, or ‘Format Error Response’ (500 status) for API issues like invalid credentials. Monitor logs for errors like ‘Invalid AWS credentials’ or ‘Region not supported,’ and verify credentials or prompt format if issues occur. Activate the workflow in n8n’s interface for deployment. Validate outputs to confirm the response matches the prompt and provider is ‘aws_bedrock.

$6.99

Workflow steps: 7

Integrated apps: manualTrigger, set, chainLlm

LLM AWS Bedrock Chain Chatbot Agent preview