{
  "workflow": {
    "id": 2554,
    "name": "MongoDB AI agent - intelligent movie recommendations",
    "views": 3125,
    "recentViews": 0,
    "totalViews": 3125,
    "createdAt": "2024-11-17T12:54:00.225Z",
    "description": "\n\n## Who is this for?\nThis workflow is designed for:\n- Database administrators and developers working with MongoDB\n- Content managers handling movie databases\n- Organizations looking to implement AI-powered search and recommendation systems\n- Developers interested in combining LangChain, OpenAI, and MongoDB capabilities\n\n## What problem does this workflow solve?\nTraditional database queries can be complex and require specific MongoDB syntax knowledge. This workflow addresses:\n- The complexity of writing MongoDB aggregation pipelines\n- The need for natural language interaction with movie databases\n- The challenge of maintaining user preferences and favorites\n- The gap between AI language models and database operations\n\n## What this workflow does\nThis workflow creates an intelligent agent that:\n1. Accepts natural language queries about movies\n2. Translates user requests into MongoDB aggregation pipelines\n3. Queries a movie database containing detailed information including:\n   - Plot summaries\n   - Genre classifications\n   - Cast and director information\n   - Runtime and release dates\n   - Ratings and awards\n4. Provides contextual responses using OpenAI's language model\n5. Allows users to save favorite movies to the database\n6. Maintains conversation context using a window buffer memory\n\n## Setup\n1. **Required Credentials**:\n   - OpenAI API credentials\n   - MongoDB connection details\n\n2. **Node Configuration**:\n   - Configure the MongoDB connection in the MongoDBAggregate node\n   - Set up the OpenAI Chat Model with your API key\n   - Ensure the webhook trigger is properly configured for receiving chat messages\n\n3. **Database Requirements**:\n   - A MongoDB collection named \"movies\" with the specified document structure\n   - Proper indexes for efficient querying\n   - Appropriate user permissions for read/write operations\n\n## How to customize this workflow\n1. **Modify the Document Structure**:\n   - Update the tool description in the MongoDBAggregate node to match your collection schema\n   - Adjust the aggregation pipeline templates for your specific use case\n\n2. **Enhance the AI Agent**:\n   - Customize the prompt in the \"AI Agent - Movie Recommendation\" node\n   - Modify the window buffer memory size based on your context needs\n   - Add additional tools for more functionality\n\n3. **Extend Functionality**:\n   - Add more MongoDB operations beyond aggregation\n   - Implement additional workflows for different types of queries\n   - Create custom error handling and validation\n   - Add user authentication and rate limiting\n\n4. **Integration Options**:\n   - Connect to external APIs for additional movie data\n   - Add webhook endpoints for different platforms\n   - Implement caching mechanisms for frequent queries\n   - Add data transformation nodes for specific output formats\n\nThis workflow serves as a foundation that can be adapted to various use cases beyond movie recommendations, such as e-commerce product search, content management systems, or any scenario requiring intelligent database interaction.",
    "workflow": {
      "id": "22PddLUgcjSJbT1w",
      "meta": {
        "instanceId": "fa7d5e2425ec76075df7100dbafffed91cc6f71f12fe92614bf78af63c54a61d",
        "templateCredsSetupCompleted": true
      },
      "name": "MongoDB Agent",
      "tags": [],
      "nodes": [
        {
          "id": "d8c07efe-eca0-48cb-80e6-ea8117073c5f",
          "name": "OpenAI Chat Model",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            1300,
            560
          ],
          "parameters": {
            "options": {}
          },
          "credentials": {
            "openAiApi": {
              "id": "credential-id",
              "name": "openAiApi Credential"
            }
          },
          "typeVersion": 1
        },
        {
          "id": "636de178-7b68-429a-9371-41cf2a950076",
          "name": "MongoDBAggregate",
          "type": "n8n-nodes-base.mongoDbTool",
          "position": [
            1640,
            540
          ],
          "parameters": {
            "query": "={{   $fromAI(\"pipeline\", \"The MongoDB pipeline to execute\" , \"string\" , [{\"$match\" : { \"rating\" : 5 }  }])}}",
            "operation": "aggregate",
            "collection": "movies",
            "descriptionType": "manual",
            "toolDescription": "Get from AI the MongoDB Aggregation pipeline to get context based on the provided pipeline, the document structure of the documents is : {\n  \"plot\": \"A group of bandits stage a brazen train hold-up, only to find a determined posse hot on their heels.\",\n  \"genres\": [\n    \"Short\",\n    \"Western\"\n  ],\n  \"runtime\": 11,\n  \"cast\": [\n    \"A.C. Abadie\",\n    \"Gilbert M. 'Broncho Billy' Anderson\",\n    ...\n  ],\n  \"poster\": \"...jpg\",\n  \"title\": \"The Great Train Robbery\",\n  \"fullplot\": \"Among the earliest existing films in American cinema - notable as the ...\",\n  \"languages\": [\n    \"English\"\n  ],\n  \"released\": \"date\"\n  },\n  \"directors\": [\n    \"Edwin S. Porter\"\n  ],\n  \"rated\": \"TV-G\",\n  \"awards\": {\n    \"wins\": 1,\n    \"nominations\": 0,\n    \"text\": \"1 win.\"\n  },\n  \"lastupdated\": \"2015-08-13 00:27:59.177000000\",\n  \"year\": 1903,\n  \"imdb\": {\n    \"rating\": 7.4,"
          },
          "credentials": {
            "mongoDb": {
              "id": "credential-id",
              "name": "mongoDb Credential"
            }
          },
          "typeVersion": 1.1
        },
        {
          "id": "e0f248dc-22b7-40a2-a00e-6298b51e4470",
          "name": "Window Buffer Memory",
          "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
          "position": [
            1500,
            540
          ],
          "parameters": {
            "contextWindowLength": 10
          },
          "typeVersion": 1.2
        },
        {
          "id": "da27ee52-43db-4818-9844-3c0a064bf958",
          "name": "When chat message received",
          "type": "@n8n/n8n-nodes-langchain.chatTrigger",
          "position": [
            1160,
            400
          ],
          "webhookId": "0730df2d-2f90-45e0-83dc-609668260fda",
          "parameters": {
            "mode": "webhook",
            "public": true,
            "options": {
              "allowedOrigins": "*"
            }
          },
          "typeVersion": 1.1
        },
        {
          "id": "9ad79da9-3145-44be-9026-e37b0e856f5d",
          "name": "insertFavorite",
          "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
          "position": [
            1860,
            520
          ],
          "parameters": {
            "name": "insertFavorites",
            "workflowId": {
              "__rl": true,
              "mode": "list",
              "value": "6QuKnOrpusQVu66Q",
              "cachedResultName": "insertMongoDB"
            },
            "description": "=Use this tool only to add favorites with the structure of {\"title\"  : \"recieved title\"  }"
          },
          "typeVersion": 1.2
        },
        {
          "id": "4d7713d1-d2ad-48bf-971b-b86195e161ca",
          "name": "AI Agent - Movie Recommendation",
          "type": "@n8n/n8n-nodes-langchain.agent",
          "position": [
            1380,
            300
          ],
          "parameters": {
            "text": "=Assistant for best movies context, you have tools to search using \"MongoDBAggregate\" and you need to provide a MongoDB aggregation pipeline code array as a \"query\" input param. User input and request: {{ $json.chatInput }}. Only when a user confirms a favorite movie use the insert favorite using the \"insertFavorite\" workflow tool of to insertFavorite as { \"title\" : \"<TITLE>\" }.",
            "options": {},
            "promptType": "define"
          },
          "typeVersion": 1.7
        },
        {
          "id": "2eac8aed-9677-4d89-bd76-456637f5b979",
          "name": "Sticky Note",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            880,
            300
          ],
          "parameters": {
            "width": 216.0875923062025,
            "height": 499.89779507612025,
            "content": "## AI Agent powered by OpenAI and MongoDB \n\nThis flow is designed to work as an AI autonomous agent that can get chat messages, query data from MongoDB using the aggregation framework.\n\nFollowing by augmenting the results from the sample movies collection and allowing storing my favorite movies back to the database using an \"insert\" flow. "
          },
          "typeVersion": 1
        },
        {
          "id": "4d8130fe-4aed-4e09-9c1d-60fb9ac1a500",
          "name": "Sticky Note1",
          "type": "n8n-nodes-base.stickyNote",
          "position": [
            1300,
            720
          ],
          "parameters": {
            "content": "## Process\n\nThe message is being processed by the \"Chat Model\" and the correct tool is used according to the message. "
          },
          "typeVersion": 1
        }
      ],
      "active": true,
      "pinData": {},
      "settings": {
        "executionOrder": "v1"
      },
      "versionId": "879aab24-6346-435f-8fd4-3fca856ba64c",
      "connections": {
        "insertFavorite": {
          "ai_tool": [
            [
              {
                "node": "AI Agent - Movie Recommendation",
                "type": "ai_tool",
                "index": 0
              }
            ]
          ]
        },
        "MongoDBAggregate": {
          "ai_tool": [
            [
              {
                "node": "AI Agent - Movie Recommendation",
                "type": "ai_tool",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model": {
          "ai_languageModel": [
            [
              {
                "node": "AI Agent - Movie Recommendation",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "Window Buffer Memory": {
          "ai_memory": [
            [
              {
                "node": "AI Agent - Movie Recommendation",
                "type": "ai_memory",
                "index": 0
              }
            ]
          ]
        },
        "When chat message received": {
          "main": [
            [
              {
                "node": "AI Agent - Movie Recommendation",
                "type": "main",
                "index": 0
              }
            ]
          ]
        }
      }
    },
    "lastUpdatedBy": 16,
    "workflowInfo": {
      "nodeCount": 8,
      "nodeTypes": {
        "n8n-nodes-base.stickyNote": {
          "count": 2
        },
        "n8n-nodes-base.mongoDbTool": {
          "count": 1
        },
        "@n8n/n8n-nodes-langchain.agent": {
          "count": 1
        },
        "@n8n/n8n-nodes-langchain.chatTrigger": {
          "count": 1
        },
        "@n8n/n8n-nodes-langchain.lmChatOpenAi": {
          "count": 1
        },
        "@n8n/n8n-nodes-langchain.toolWorkflow": {
          "count": 1
        },
        "@n8n/n8n-nodes-langchain.memoryBufferWindow": {
          "count": 1
        }
      }
    },
    "status": "published",
    "readyToDemo": null,
    "user": {
      "name": "Pavel Duchovny",
      "username": "pash",
      "bio": "Developer imagination == Innovation ✓\n\nExperienced DBA & DevOps engineer & Web Developer. Develop and deploy automation of servers, infrastructure and security to the cloud. Scaling, upgrading and designing Big scaled systems and databases .\n\nSpecializing in designing and building big data solutions in both RDBMS and NoSql echosystems.\n\nHardworking and innovative personality.",
      "verified": false,
      "links": [
        ""
      ],
      "avatar": "https://gravatar.com/avatar/3f44811eec962f32f82ce2ad6c503da4b174a073c965aeece97e0e6c80ebfa9d?r=pg&d=retro&size=200"
    },
    "nodes": [
      {
        "id": 565,
        "icon": "fa:sticky-note",
        "name": "n8n-nodes-base.stickyNote",
        "codex": {
          "data": {
            "alias": [
              "Comments",
              "Notes",
              "Sticky"
            ],
            "categories": [
              "Core Nodes"
            ],
            "nodeVersion": "1.0",
            "codexVersion": "1.0",
            "subcategories": {
              "Core Nodes": [
                "Helpers"
              ]
            }
          }
        },
        "group": "[\"input\"]",
        "defaults": {
          "name": "Sticky Note",
          "color": "#FFD233"
        },
        "iconData": {
          "icon": "sticky-note",
          "type": "icon"
        },
        "displayName": "Sticky Note",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          }
        ]
      },
      {
        "id": 1119,
        "icon": "fa:robot",
        "name": "@n8n/n8n-nodes-langchain.agent",
        "codex": {
          "data": {
            "alias": [
              "LangChain",
              "Chat",
              "Conversational",
              "Plan and Execute",
              "ReAct",
              "Tools"
            ],
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/"
                }
              ]
            },
            "categories": [
              "AI",
              "Langchain"
            ],
            "subcategories": {
              "AI": [
                "Agents",
                "Root Nodes"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "AI Agent",
          "color": "#404040"
        },
        "iconData": {
          "icon": "robot",
          "type": "icon"
        },
        "displayName": "AI Agent",
        "typeVersion": 3,
        "nodeCategories": [
          {
            "id": 25,
            "name": "AI"
          },
          {
            "id": 26,
            "name": "Langchain"
          }
        ]
      },
      {
        "id": 1153,
        "icon": "file:openAiLight.svg",
        "name": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
        "codex": {
          "data": {
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenai/"
                }
              ]
            },
            "categories": [
              "AI",
              "Langchain"
            ],
            "subcategories": {
              "AI": [
                "Language Models",
                "Root Nodes"
              ],
              "Language Models": [
                "Chat Models (Recommended)"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "OpenAI Chat Model"
        },
        "iconData": {
          "type": "file",
          "fileBuffer": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTM2Ljg2NzEgMTYuMzcxOEMzNy43NzQ2IDEzLjY0OCAzNy40NjIxIDEwLjY2NDIgMzYuMDEwOCA4LjE4NjYxQzMzLjgyODIgNC4zODY1MyAyOS40NDA3IDIuNDMxNDkgMjUuMTU1NiAzLjM1MTUxQzIz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Ny41MDA2TDE5LjczNDIgMTQuOTk5M0wyNC4wNjU1IDE3LjQ5OTNWMjIuNTAwN0wxOS43MzQyIDI1LjAwMDdMMTUuNDAyOSAyMi41MDA3VjE3LjUwMDZaIiBmaWxsPSIjN0Q3RDg3Ii8+Cjwvc3ZnPgo="
        },
        "displayName": "OpenAI Chat Model",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 25,
            "name": "AI"
          },
          {
            "id": 26,
            "name": "Langchain"
          }
        ]
      },
      {
        "id": 1163,
        "icon": "fa:database",
        "name": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
        "codex": {
          "data": {
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorybufferwindow/"
                }
              ]
            },
            "categories": [
              "AI",
              "Langchain"
            ],
            "subcategories": {
              "AI": [
                "Memory"
              ],
              "Memory": [
                "For beginners"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Simple Memory"
        },
        "iconData": {
          "icon": "database",
          "type": "icon"
        },
        "displayName": "Simple Memory",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 25,
            "name": "AI"
          },
          {
            "id": 26,
            "name": "Langchain"
          }
        ]
      },
      {
        "id": 1205,
        "icon": "fa:network-wired",
        "name": "@n8n/n8n-nodes-langchain.toolWorkflow",
        "codex": {
          "data": {
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolworkflow/"
                }
              ]
            },
            "categories": [
              "AI",
              "Langchain"
            ],
            "subcategories": {
              "AI": [
                "Tools"
              ],
              "Tools": [
                "Recommended Tools"
              ]
            }
          }
        },
        "group": "[\"transform\"]",
        "defaults": {
          "name": "Call n8n Workflow Tool"
        },
        "iconData": {
          "icon": "network-wired",
          "type": "icon"
        },
        "displayName": "Call n8n Workflow Tool",
        "typeVersion": 2,
        "nodeCategories": [
          {
            "id": 25,
            "name": "AI"
          },
          {
            "id": 26,
            "name": "Langchain"
          }
        ]
      },
      {
        "id": 1247,
        "icon": "fa:comments",
        "name": "@n8n/n8n-nodes-langchain.chatTrigger",
        "codex": {
          "data": {
            "resources": {
              "primaryDocumentation": [
                {
                  "url": "https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/"
                }
              ]
            },
            "categories": [
              "Core Nodes",
              "Langchain"
            ]
          }
        },
        "group": "[\"trigger\"]",
        "defaults": {
          "name": "When chat message received"
        },
        "iconData": {
          "icon": "comments",
          "type": "icon"
        },
        "displayName": "Chat Trigger",
        "typeVersion": 1,
        "nodeCategories": [
          {
            "id": 9,
            "name": "Core Nodes"
          },
          {
            "id": 26,
            "name": "Langchain"
          }
        ]
      }
    ],
    "categories": [
      {
        "id": 5,
        "name": "Engineering"
      },
      {
        "id": 48,
        "name": "AI RAG"
      }
    ],
    "image": []
  }
}