I’m trying to connect n8n with my agent AWS through HTTP Request Node but all of my trys get failed, there’s any possibility for this feature get merged soon? i saw a task for this solution open on github.
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
{
"nodes": [
{
"parameters": {
"method": "POST",
"url": "https://bedrock-runtime.us-east-1.amazonaws.com/agents/My Agent ID/agentAliases/My Alias ID /sessions/test-123/text",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "aws",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-amz-source-arn",
"value": "arn:aws:bedrock:us-east-1: My Account AWS :agent/My Agent ID"
},
{
"name": "Content-type",
"value": "application/json"
},
{
"name": "Accept",
"value": "application/json"
}
]
},
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\n \"bedrockModelConfigurations\": { \n \"performanceConfig\": { \n \"latency\": \"low\"\n }\n }, \"inputText\": \"hello\",\n \"enableTrace\": false\n}\n ",
"options": {}
},
"id": "ff826af3-4f23-45b2-b6de-01268338fc8a",
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
440,
620
],
"credentials": {
"aws": {
"id": "nYgvZQglCR1bb43t",
"name": "AWS account"
}
}
},
{
"parameters": {
"options": {}
},
"id": "cc6f7c97-2c6d-4101-a6a9-e52a3266058d",
"name": "When chat message received",
"type": "@n8n/n8n-nodes-langchain.chatTrigger",
"typeVersion": 1.1,
"position": [
300,
620
],
"webhookId": "ed3255c9-0a2e-453b-b5a3-63a7523f0fc1"
}
],
"connections": {
"When chat message received": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "e9f479d62d24d1c64104a9780568d1a81cc09798d56e8590a320e6fedabd0c09"
}
}
Share the output returned by the last node:
{ “Output”: { “__type”: “com.amazon.coral.service#UnknownOperationException” }, “Version”: “1.0” }
Information on your n8n setup
- n8n version: - last version
- Database (default: SQLite): - Postgres
- n8n EXECUTIONS_PROCESS setting (default: own, main): - my own
- Running n8n via (Docker, npm, n8n cloud, desktop app): - Docker
- Operating system: - Linux