n8n
Workflow
Introduction To The Http Tool
This n8n workflow automates tasks and integrates with various services. Introduction To The Http Tool - ready to import and run in your n8n instance.
n8n
workflow.json
About This Script
This n8n workflow automates tasks and integrates with various services. Introduction To The Http Tool - ready to import and run in your n8n instance.
Features:
- Automates workflow tasks
- Ready to import into n8n
- Configurable parameters
Source Code
{
"nodes": [
{
"id": "abccacce-bbdc-428e-94e0-19996c5bfe02",
"name": "Sticky Note",
"type": "n8n-nodes-base.stickyNote",
"position": [
1720,
160
],
"parameters": {
"color": "#FFF59D",
"width": 319.5392879244982,
"height": 218.88813194060202,
"content": "Configuration note: update with your credentials or endpoint."
},
"typeVersion": 1
},
{
"id": "9fc05c79-5a2d-4ac4-a4f5-32b9c1b385e1",
"name": "OpenAI Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1340,
340
],
"parameters": {
"options": []
},
"credentials": {
"openAiApi": {
"id": "8gccIjcuf3gvaoEr",
"name": "OpenAi account"
}
},
"typeVersion": 1
},
{
"id": "45c9bdaf-d51e-4026-8911-4b04c5473b06",
"name": "Sticky Note1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1720,
560
],
"parameters": {
"color": "#FFF59D",
"width": 365.9021913627245,
"height": 245.35379866205295,
"content": "Configuration note: update with your credentials or endpoint."
},
"typeVersion": 1
},
{
"id": "bc1754e6-01f4-4561-8814-c08feb45acec",
"name": "OpenAI Chat Model1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1340,
740
],
"parameters": {
"options": []
},
"credentials": {
"openAiApi": {
"id": "8gccIjcuf3gvaoEr",
"name": "OpenAi account"
}
},
"typeVersion": 1
},
{
"id": "a40230ae-6050-4bb8-b275-3a893dc3ad98",
"name": "Activity Tool",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
1560,
740
],
"parameters": {
"url": "https://bored-api.appbrewery.com/filter",
"sendQuery": true,
"parametersQuery": {
"values": [
{
"name": "type"
},
{
"name": "participants"
}
]
},
"toolDescription": "Call this tool to suggest an activity where:\n* the parameter \"type\" is one of \"education\", \"recreational\",\"social\",\"diy\",\"charity\",\"cooking\",\"relaxation\",\"music\",\"busywork\"\n* the parameter \"participants\" is the number of participants for the activity"
},
"typeVersion": 1
},
{
"id": "297377e0-e149-4786-b521-82670ac390a7",
"name": "Set ChatInput1",
"type": "n8n-nodes-base.set",
"position": [
1180,
560
],
"parameters": {
"options": [],
"assignments": {
"assignments": [
{
"id": "e976bf5f-8803-4129-9136-115b3d15755c",
"name": "chatInput",
"type": "string",
"value": "Hi! Please suggest something to do. I feel like learning something new!"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "a9128da1-4486-4a17-b9b3-64ebc402348d",
"name": "AI Agent1",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1360,
560
],
"parameters": {
"text": "={{ $json.chatInput }}",
"options": [],
"promptType": "define"
},
"typeVersion": 1.6
},
{
"id": "28a5e75e-e32d-4c94-bea2-7347923e6bb9",
"name": "Set ChatInput",
"type": "n8n-nodes-base.set",
"position": [
1160,
160
],
"parameters": {
"options": [],
"assignments": {
"assignments": [
{
"id": "9695c156-c882-4e43-8a4e-70fbdc1a63de",
"name": "chatInput",
"type": "string",
"value": "Can get the latest 10 issues from https://github.com/n8n-io/n8n/issues?"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "d29b30fb-7edb-4665-bc6b-a511caf9db9f",
"name": "When clicking \u2018Test workflow\u2019",
"type": "n8n-nodes-base.manualTrigger",
"position": [
900,
400
],
"parameters": [],
"typeVersion": 1
},
{
"id": "066f9cdd-4bd3-48a1-bf9b-32eda3e28945",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1360,
160
],
"parameters": {
"text": "={{ $json.chatInput }}",
"options": [],
"promptType": "define"
},
"typeVersion": 1.6
},
{
"id": "fb4abae8-7e38-47b7-9595-403e523f7125",
"name": "Webscraper Tool",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
1560,
340
],
"parameters": {
"url": "https://api.firecrawl.dev/v0/scrape",
"fields": "markdown",
"method": "POST",
"sendBody": true,
"dataField": "data",
"authentication": "genericCredentialType",
"parametersBody": {
"values": [
{
"name": "url"
},
{
"name": "pageOptions",
"value": "={{ {\n onlyMainContent: true,\n replaceAllPathsWithAbsolutePaths: true,\n removeTags: 'img,svg,video,audio'\n} }}",
"valueProvider": "fieldValue"
}
]
},
"fieldsToInclude": "selected",
"genericAuthType": "httpHeaderAuth",
"toolDescription": "Call this tool to fetch a webpage content.",
"optimizeResponse": true
},
"credentials": {
"httpHeaderAuth": {
"id": "OUOnyTkL9vHZNorB",
"name": "Firecrawl API"
}
},
"typeVersion": 1
},
{
"id": "73d3213c-1ecb-4007-b882-1cc756a6f6e0",
"name": "Sticky Note2",
"type": "n8n-nodes-base.stickyNote",
"position": [
420,
120
],
"parameters": {
"width": 413.82332632615135,
"height": 435.92895157500243,
"content": "Configuration note: update with your credentials or endpoint.",
"color": "#FFF59D"
},
"typeVersion": 1
}
],
"connections": {
"Activity Tool": {
"ai_tool": [
[
{
"node": "AI Agent1",
"type": "ai_tool",
"index": 0
}
]
]
},
"Set ChatInput": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Set ChatInput1": {
"main": [
[
{
"node": "AI Agent1",
"type": "main",
"index": 0
}
]
]
},
"Webscraper Tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent1",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"When clicking \u2018Test workflow\u2019": {
"main": [
[
{
"node": "Set ChatInput",
"type": "main",
"index": 0
},
{
"node": "Set ChatInput1",
"type": "main",
"index": 0
}
]
]
}
},
"n8n_version": "1.5.0"
}
Requirements
n8n instance, API credentials for connected services
Tags
#n8n
#automation
#workflow