Created
November 19, 2024 11:31
-
-
Save OlegIvaniv/34f774c29a8395535d599395c648314b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Gemini Flash + Tool Calling", | |
| "nodes": [ | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "id": "c12f38bf-308e-4aaa-961c-0404834262d3", | |
| "name": "When chat message received", | |
| "type": "@n8n/n8n-nodes-langchain.chatTrigger", | |
| "typeVersion": 1.1, | |
| "position": [ | |
| 700, | |
| 820 | |
| ], | |
| "webhookId": "485cd60c-315c-4dda-9a31-ff0b364cce9d" | |
| }, | |
| { | |
| "parameters": { | |
| "sendTo": "={{ $fromAI('email_address') }}", | |
| "subject": "={{ $fromAI('subject') }}", | |
| "message": "={{ $fromAI('html_message') }}", | |
| "options": { | |
| "senderName": "n8n AI" | |
| } | |
| }, | |
| "id": "567820a6-eca5-4386-a66e-6ee192172ed2", | |
| "name": "Gmail", | |
| "type": "n8n-nodes-base.gmailTool", | |
| "typeVersion": 2.1, | |
| "position": [ | |
| 1380, | |
| 1020 | |
| ], | |
| "webhookId": "4a034747-a564-4049-b864-32e8a09891d0", | |
| "credentials": { | |
| "gmailOAuth2": { | |
| "id": "kLFedNEM8Zwkergv", | |
| "name": "Gmail account" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "descriptionType": "manual", | |
| "toolDescription": "Send Slack message to an user", | |
| "select": "user", | |
| "user": { | |
| "__rl": true, | |
| "value": "=@{{ $fromAI('user') }}", | |
| "mode": "username" | |
| }, | |
| "text": "={{ $fromAI('message') }}", | |
| "otherOptions": {} | |
| }, | |
| "id": "4b2c33b1-de3e-45ca-8d54-3b84427a796f", | |
| "name": "Slack", | |
| "type": "n8n-nodes-base.slackTool", | |
| "typeVersion": 2.2, | |
| "position": [ | |
| 1240, | |
| 1020 | |
| ], | |
| "webhookId": "294ffd25-c219-42ff-9792-294fd89d354d", | |
| "credentials": { | |
| "slackApi": { | |
| "id": "X92QgQpOCoF1VHtg", | |
| "name": "Slack account 2" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "descriptionType": "manual", | |
| "toolDescription": "Get articles from Hacker News", | |
| "resource": "all", | |
| "limit": "={{ $fromAI('count') }}", | |
| "additionalFields": { | |
| "keyword": "={{ $fromAI('keyword') }}" | |
| } | |
| }, | |
| "id": "2ebc3605-7235-4a92-90c5-53cac14df5c9", | |
| "name": "Hacker News", | |
| "type": "n8n-nodes-base.hackerNewsTool", | |
| "typeVersion": 1, | |
| "position": [ | |
| 1100, | |
| 1020 | |
| ] | |
| }, | |
| { | |
| "parameters": { | |
| "modelName": "=models/gemini-1.5-flash-latest", | |
| "options": {} | |
| }, | |
| "id": "2063f335-fdb7-494b-8ac6-a59ff4c63764", | |
| "name": "Google Gemini Chat Model", | |
| "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini", | |
| "typeVersion": 1, | |
| "position": [ | |
| 860, | |
| 1000 | |
| ], | |
| "credentials": { | |
| "googlePalmApi": { | |
| "id": "81GJHs3LqShxPC4Y", | |
| "name": "Google Gemini(PaLM) Api account" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "options": {} | |
| }, | |
| "id": "750c97f5-3ec5-458e-8318-f0f750818903", | |
| "name": "AI Agent", | |
| "type": "@n8n/n8n-nodes-langchain.agent", | |
| "typeVersion": 1.7, | |
| "position": [ | |
| 920, | |
| 820 | |
| ] | |
| } | |
| ], | |
| "pinData": {}, | |
| "connections": { | |
| "When chat message received": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Gmail": { | |
| "ai_tool": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_tool", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Slack": { | |
| "ai_tool": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_tool", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Hacker News": { | |
| "ai_tool": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_tool", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Google Gemini Chat Model": { | |
| "ai_languageModel": [ | |
| [ | |
| { | |
| "node": "AI Agent", | |
| "type": "ai_languageModel", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| } | |
| }, | |
| "active": false, | |
| "settings": { | |
| "executionOrder": "v1" | |
| }, | |
| "versionId": "bf44e178-a9e2-4510-a6f4-70078703a901", | |
| "meta": { | |
| "templateCredsSetupCompleted": true, | |
| "instanceId": "178ef8a5109fc76c716d40bcadb720c455319f7b7a3fd5a39e4f336a091f524a" | |
| }, | |
| "id": "xH2pXQugjsqf0p2C", | |
| "tags": [] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment