{
    "name": "Auto-DM New Twitter Followers",
    "nodes": [
        {
            "parameters": {
                "content": "Placeholder for Auto-DM New Twitter Followers",
                "height": 530,
                "width": 1100,
                "color": 5
            },
            "id": "6c8445ba-33d0-4091-bc77-9206a3e8b3be",
            "name": "Sticky Note",
            "type": "n8n-nodes-base.stickyNote",
            "typeVersion": 1,
            "position": [
                -480,
                -240
            ]
        },
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "auto-dm-new-twitter-followers"
            },
            "id": "f3af4318-25fb-48b3-afcd-b6626ffa4fc3",
            "name": "Webhook Trigger",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                -300,
                0
            ]
        },
        {
            "parameters": {
                "chunkSize": 400,
                "chunkOverlap": 40
            },
            "id": "5d8f131d-4f2e-4689-941a-71971000788e",
            "name": "Text Splitter",
            "type": "@n8n\/n8n-nodes-langchain.textSplitterCharacterTextSplitter",
            "typeVersion": 1,
            "position": [
                -130,
                0
            ]
        },
        {
            "parameters": {
                "model": "embed-english-v3.0",
                "options": []
            },
            "id": "c16f0e7d-d77e-4bf0-a9b8-aff545ebac3e",
            "name": "Embeddings",
            "type": "@n8n\/n8n-nodes-langchain.embeddingsCohere",
            "typeVersion": 1,
            "position": [
                70,
                0
            ],
            "credentials": {
                "cohereApi": {
                    "id": "COHERE_API",
                    "name": "Cohere"
                }
            }
        },
        {
            "parameters": {
                "mode": "insert",
                "options": [],
                "pineconeIndex": {
                    "__rl": true,
                    "value": "auto-dm_new_twitter_followers",
                    "mode": "list",
                    "cachedResultName": "auto-dm_new_twitter_followers"
                }
            },
            "id": "66aa91bd-6e08-4905-92b6-ab70a0a0fb57",
            "name": "Pinecone Insert",
            "type": "@n8n\/n8n-nodes-langchain.vectorStorePinecone",
            "typeVersion": 1,
            "position": [
                270,
                0
            ],
            "credentials": {
                "pineconeApi": {
                    "id": "PINECONE_API",
                    "name": "Pinecone account"
                }
            }
        },
        {
            "parameters": {
                "pineconeIndex": {
                    "__rl": true,
                    "value": "auto-dm_new_twitter_followers",
                    "mode": "list",
                    "cachedResultName": "auto-dm_new_twitter_followers"
                }
            },
            "id": "9e705430-71d8-4f8c-badf-693b26ca753a",
            "name": "Pinecone Query",
            "type": "@n8n\/n8n-nodes-langchain.vectorStorePinecone",
            "typeVersion": 1,
            "position": [
                270,
                -180
            ],
            "credentials": {
                "pineconeApi": {
                    "id": "PINECONE_API",
                    "name": "Pinecone account"
                }
            }
        },
        {
            "parameters": {
                "name": "Pinecone",
                "description": "Vector context"
            },
            "id": "ca01a22f-5dd8-403c-95ea-f56ba2d0e096",
            "name": "Vector Tool",
            "type": "@n8n\/n8n-nodes-langchain.toolVectorStore",
            "typeVersion": 1,
            "position": [
                450,
                -180
            ]
        },
        {
            "parameters": [],
            "id": "bab9ab82-93b6-47dd-b15f-8a84bcb46950",
            "name": "Window Memory",
            "type": "@n8n\/n8n-nodes-langchain.memoryBufferWindow",
            "typeVersion": 1.3,
            "position": [
                450,
                -40
            ]
        },
        {
            "parameters": {
                "options": []
            },
            "id": "752644de-7653-4ebb-afe7-9f0afb6d092b",
            "name": "Chat Model",
            "type": "@n8n\/n8n-nodes-langchain.lmChatOpenAi",
            "typeVersion": 1,
            "position": [
                450,
                -340
            ],
            "credentials": {
                "openAiApi": {
                    "id": "OPENAI_API",
                    "name": "OpenAI"
                }
            }
        },
        {
            "parameters": {
                "promptType": "define",
                "text": "Handle data",
                "options": {
                    "systemMessage": "You are an assistant for Auto-DM New Twitter Followers"
                }
            },
            "id": "b22befc8-d57c-4fb2-a104-4fd9e9fbf878",
            "name": "RAG Agent",
            "type": "@n8n\/n8n-nodes-langchain.agent",
            "typeVersion": 1,
            "position": [
                720,
                -40
            ]
        },
        {
            "parameters": {
                "operation": "append",
                "documentId": {
                    "__rl": true,
                    "value": "SHEET_ID",
                    "mode": "list",
                    "cachedResultName": "Auto-DM New Twitter Followers"
                },
                "sheetName": {
                    "__rl": true,
                    "value": "Log",
                    "mode": "list",
                    "cachedResultName": "Log"
                },
                "columns": {
                    "mappingMode": "defineBelow",
                    "value": "Status",
                    "schema": []
                }
            },
            "id": "5d5d5e45-7359-4cf9-a630-6592d59cda74",
            "name": "Append Sheet",
            "type": "n8n-nodes-base.googleSheets",
            "typeVersion": 4,
            "position": [
                930,
                -40
            ],
            "credentials": {
                "googleSheetsOAuth2Api": {
                    "id": "SHEETS_API",
                    "name": "Google Sheets account"
                }
            }
        },
        {
            "parameters": {
                "channel": "#alerts",
                "text": "Auto-DM New Twitter Followers error: {$json.error.message}"
            },
            "id": "b9362533-2cf6-4f58-980f-829f3483092c",
            "name": "Slack Alert",
            "type": "n8n-nodes-base.slack",
            "typeVersion": 1,
            "position": [
                930,
                120
            ],
            "credentials": {
                "slackApi": {
                    "id": "SLACK_API",
                    "name": "Slack"
                }
            }
        }
    ],
    "connections": {
        "Webhook Trigger": {
            "main": [
                [
                    {
                        "node": "Text Splitter",
                        "type": "main",
                        "index": 0
                    },
                    {
                        "node": "Window Memory",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "Text Splitter": {
            "main": [
                [
                    {
                        "node": "Embeddings",
                        "type": "main",
                        "index": 0
                    }
                ]
            ],
            "ai_textSplitter": [
                [
                    {
                        "node": "Pinecone Insert",
                        "type": "ai_textSplitter",
                        "index": 0
                    }
                ]
            ]
        },
        "Embeddings": {
            "ai_embedding": [
                [
                    {
                        "node": "Pinecone Insert",
                        "type": "ai_embedding",
                        "index": 0
                    },
                    {
                        "node": "Pinecone Query",
                        "type": "ai_embedding",
                        "index": 0
                    }
                ]
            ]
        },
        "Pinecone Insert": {
            "ai_document": [
                []
            ]
        },
        "Pinecone Query": {
            "ai_vectorStore": [
                [
                    {
                        "node": "Vector Tool",
                        "type": "ai_vectorStore",
                        "index": 0
                    }
                ]
            ]
        },
        "Vector Tool": {
            "ai_tool": [
                [
                    {
                        "node": "RAG Agent",
                        "type": "ai_tool",
                        "index": 0
                    }
                ]
            ]
        },
        "Window Memory": {
            "ai_memory": [
                [
                    {
                        "node": "RAG Agent",
                        "type": "ai_memory",
                        "index": 0
                    }
                ]
            ]
        },
        "Chat Model": {
            "ai_languageModel": [
                [
                    {
                        "node": "RAG Agent",
                        "type": "ai_languageModel",
                        "index": 0
                    }
                ]
            ]
        },
        "RAG Agent": {
            "main": [
                [
                    {
                        "node": "Append Sheet",
                        "type": "main",
                        "index": 0
                    }
                ]
            ],
            "onError": [
                [
                    {
                        "node": "Slack Alert",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    },
    "settings": {
        "executionOrder": "v1"
    },
    "triggerCount": 1
}