{
  "name": "Sainsbury - Chat Consultant",
  "nodes": [
    {
      "parameters": {
        "public": true,
        "initialMessages": "Hello Sainsbury Leadership! \n\nI am a highly experienced and professional consultant specializing in the UK retail market, with a subspecialty in groceries. I have conducted a comprehensive competitive analysis against Sainsbury's key competitors: Tesco, Morrisons, and Asda.\n\nWhat competitive information would you like to know today?",
        "options": {
          "subtitle": "Consultancy help 24/7.",
          "title": "Sainsbury's  Competitive Chat Consultant  for Leadership.",
          "customCss": ":root {\n  /* Colors */\n  --chat--color-primary: #e74266;\n  --chat--color-primary-shade-50: #db4061;\n  --chat--color-primary-shade-100: #cf3c5c;\n  --chat--color-secondary: #20b69e;\n  --chat--color-secondary-shade-50: #1ca08a;\n  --chat--color-white: #ffffff;\n  --chat--color-light: #f2f4f8;\n  --chat--color-light-shade-50: #e6e9f1;\n  --chat--color-light-shade-100: #c2c5cc;\n  --chat--color-medium: #d2d4d9;\n  --chat--color-dark: #101330;\n  --chat--color-disabled: #777980;\n  --chat--color-typing: #404040;\n\n  /* Base Layout */\n  --chat--spacing: 1rem;\n  --chat--border-radius: 0.25rem;\n  --chat--transition-duration: 0.15s;\n  --chat--font-family: (\n    -apple-system,\n    BlinkMacSystemFont,\n    'Segoe UI',\n    Roboto,\n    Oxygen-Sans,\n    Ubuntu,\n    Cantarell,\n    'Helvetica Neue',\n    sans-serif\n  );\n\n  /* Window Dimensions */\n  --chat--window--width: 400px;\n  --chat--window--height: 600px;\n  --chat--window--bottom: var(--chat--spacing);\n  --chat--window--right: var(--chat--spacing);\n  --chat--window--z-index: 9999;\n  --chat--window--border: 1px solid var(--chat--color-light-shade-50);\n  --chat--window--border-radius: var(--chat--border-radius);\n  --chat--window--margin-bottom: var(--chat--spacing);\n\n  /* Header Styles */\n  --chat--header-height: auto;\n  --chat--header--padding: var(--chat--spacing);\n  --chat--header--background: var(--chat--color-dark);\n  --chat--header--color: var(--chat--color-light);\n  --chat--header--border-top: none;\n  --chat--header--border-bottom: none;\n  --chat--header--border-left: none;\n  --chat--header--border-right: none;\n  --chat--heading--font-size: 2em;\n  --chat--subtitle--font-size: inherit;\n  --chat--subtitle--line-height: 1.8;\n\n  /* Message Styles */\n  --chat--message--font-size: 1rem;\n  --chat--message--padding: var(--chat--spacing);\n  --chat--message--border-radius: var(--chat--border-radius);\n  --chat--message-line-height: 1.5;\n  --chat--message--margin-bottom: calc(var(--chat--spacing) * 1);\n  --chat--message--bot--background: var(--chat--color-white);\n  --chat--message--bot--color: var(--chat--color-dark);\n  --chat--message--bot--border: none;\n  --chat--message--user--background: var(--chat--color-secondary);\n  --chat--message--user--color: var(--chat--color-white);\n  --chat--message--user--border: none;\n  --chat--message--pre--background: rgba(0, 0, 0, 0.05);\n  --chat--messages-list--padding: var(--chat--spacing);\n\n  /* Toggle Button */\n  --chat--toggle--size: 64px;\n  --chat--toggle--width: var(--chat--toggle--size);\n  --chat--toggle--height: var(--chat--toggle--size);\n  --chat--toggle--border-radius: 50%;\n  --chat--toggle--background: var(--chat--color-primary);\n  --chat--toggle--hover--background: var(--chat--color-primary-shade-50);\n  --chat--toggle--active--background: var(--chat--color-primary-shade-100);\n  --chat--toggle--color: var(--chat--color-white);\n\n  /* Input Area */\n  --chat--textarea--height: 50px;\n  --chat--textarea--max-height: 30rem;\n  --chat--input--font-size: inherit;\n  --chat--input--border: 0;\n  --chat--input--border-radius: 0;\n  --chat--input--padding: 0.8rem;\n  --chat--input--background: var(--chat--color-white);\n  --chat--input--text-color: initial;\n  --chat--input--line-height: 1.5;\n  --chat--input--placeholder--font-size: var(--chat--input--font-size);\n  --chat--input--border-active: 0;\n  --chat--input--left--panel--width: 2rem;\n\n  /* Button Styles */\n  --chat--button--color: var(--chat--color-light);\n  --chat--button--background: var(--chat--color-primary);\n  --chat--button--padding: calc(var(--chat--spacing) * 1 / 2) var(--chat--spacing);\n  --chat--button--border-radius: var(--chat--border-radius);\n  --chat--button--hover--color: var(--chat--color-light);\n  --chat--button--hover--background: var(--chat--color-primary-shade-50);\n  --chat--close--button--color-hover: var(--chat--color-primary);\n\n  /* Send and File Buttons */\n  --chat--input--send--button--background: var(--chat--color-white);\n  --chat--input--send--button--color: var(--chat--color-light);\n  --chat--input--send--button--background-hover: var(--chat--color-primary-shade-50);\n  --chat--input--send--button--color-hover: var(--chat--color-secondary-shade-50);\n  --chat--input--file--button--background: var(--chat--color-white);\n  --chat--input--file--button--color: var(--chat--color-secondary);\n  --chat--input--file--button--background-hover: var(--chat--input--file--button--background);\n  --chat--input--file--button--color-hover: var(--chat--color-secondary-shade-50);\n  --chat--files-spacing: 0.25rem;\n\n  /* Body and Footer */\n  --chat--body--background: var(--chat--color-light);\n  --chat--footer--background: var(--chat--color-light);\n  --chat--footer--color: var(--chat--color-dark);\n}\n\n\n/* You can override any class styles, too. Right-click inspect in Chat UI to find class to override. */\n.chat-message {\n\tmax-width: 50%;\n}"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.1,
      "position": [
        -300,
        -20
      ],
      "id": "12165281-5d9a-4488-a6b7-564f7ac03e31",
      "name": "When chat message received",
      "webhookId": "fb1fa435-cc96-41c4-a590-091e5a154934"
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "# You work for and represent Sainsbury. You are also, a highly experienced and professional consultant specializing in the UK retail market, with a subspecialty in groceries. Your primary task is to conduct a comprehensive competitive analysis for Sainsbury against its key competitors: Tesco, Morrisons, and Asda. ALWAYS response with inclusive language like \"we\", \"us\", \"our\", etc...\n\nYou will analyze data from the latest available information on the internet, categorizing your findings into one of the following eight categories:\n\n- Financial Performance\n- Customer Experience\n- Market Positioning\n- Product Innovations\n- Technological Trends\n- Regulatory Changes\n- Sales and Marketing Strategies\n\n## Industry Trends\nYour analysis should be holistic but can also focus on a specific time range if required. Ensure that your insights are well-researched, data-driven, and relevant to Sainsbury's strategic objectives. Provide actionable recommendations based on your findings to enhance Sainsbury's competitive standing in the grocery sector.\n\n## Tools\n- Use the provided Research data to help answer the questions with the latest news articles and summaries. ALWAYS Include links to enhance your responses. \n\n## Report template if the user asks for the latest report otherwise just answer any questions without using this report template\n\n# Competitive Analysis Report\n\n## Executive Summary\n\n- **Key Findings:** [Summary of insights]\n- **Recommendations:** [Actionable suggestions]\n\n---\n\n## 1. Introduction\n\n- **Purpose:** [Define the report's aim]\n- **Methodology:** [Brief description of data sources]\n\n---\n\n## 2. Competitive Landscape\n\n- **Competitors Overview:** [List of key competitors]\n- **Market Positioning:** [Summary of market shares]\n\n---\n\n## 3. Analysis Categories\n\n### 3.1. Financial Performance\n\n- **Metrics:** [Revenue, profit, etc., if available]\n\n### 3.2. Customer Experience\n\n- **Satisfaction Ratings:** [Overview, if data exists]\n\n### 3.3. Market Positioning\n\n- **Brand Perception:** [Summary of insights]\n\n### 3.4. Product Offerings\n\n- **Innovations:** [Key products, if applicable]\n\n### 3.5. Technology Adoption\n\n- **Digital Presence:** [Overview, if relevant]\n\n### 3.6. Regulatory Considerations\n\n- **Impact of Regulations:** [If applicable]\n\n### 3.7. Marketing Strategies\n\n- **Promotional Activities:** [Summary, if available]\n\n---\n\n## 4. Industry Trends\n\n- **Current Trends:** [Brief overview]\n\n---\n\n## 5. Recommendations\n\n- **Strategic Initiatives:** [Key suggestions for improvement]\n\n---\n\n## 6. Consultant's Thoughts\n\n- **Summary of Insights:** [Final thoughts]\n\n---\n\n## 7. References\n\n- **Sources:** [List of references]\n\n---\n\n## Appendices\n\n- **Additional Data:** [Supplementary information, if any]~~~~\n"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.8,
      "position": [
        -80,
        -20
      ],
      "id": "4448a350-fef0-4e3b-901c-11641f4c0f4a",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "contextWindowLength": 20
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        20,
        180
      ],
      "id": "aa6497e7-c48f-44cf-9674-d017992955c3",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "1aPcl4de4lF9rjj25Q6EaACuU9SnU-O10fotO6_TW_PM",
          "mode": "list",
          "cachedResultName": "Sainsbury",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1aPcl4de4lF9rjj25Q6EaACuU9SnU-O10fotO6_TW_PM/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "NewsData",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1aPcl4de4lF9rjj25Q6EaACuU9SnU-O10fotO6_TW_PM/edit#gid=0"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.5,
      "position": [
        180,
        180
      ],
      "id": "256be3ba-7ca6-4c3f-8392-788669b07e4b",
      "name": "Research Data",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "bU61ktbu2gExR1dP",
          "name": "Google Sheets account"
        }
      }
    },
    {
      "parameters": {
        "content": "![](https://static.wikia.nocookie.net/longhorn/images/2/2b/Sainsbury%27s_2013.svg/revision/latest?cb=20181016054553)\n## Chat Interface - Front End",
        "height": 860,
        "width": 800,
        "color": 7
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        -360
      ],
      "typeVersion": 1,
      "id": "1bef99b5-3662-483b-8514-f7d0b9d0702e",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "# [Powered By - Google Alerts)](https://www.google.com/alerts)\n## [Data](https://docs.google.com/spreadsheets/d/1aPcl4de4lF9rjj25Q6EaACuU9SnU-O10fotO6_TW_PM/edit?usp=sharing) | [Chat UI](https://auto.cnxlab.us/webhook/fb1fa435-cc96-41c4-a590-091e5a154934/chat) | [Research Engine](https://auto.cnxlab.us/workflow/2K8ziUYXq1h2aMtV)",
        "height": 120,
        "width": 760,
        "color": 2
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -400,
        360
      ],
      "typeVersion": 1,
      "id": "61f8fb20-5182-45fc-8173-a868f0958f30",
      "name": "Sticky Note4"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4.1",
          "mode": "list",
          "cachedResultName": "gpt-4.1"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        -120,
        180
      ],
      "id": "2b9826cb-291d-43a6-81f7-44d77b1da077",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "Rx1s3A8TvKYO1Xbw",
          "name": "OpenAi account"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Research Data": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "db2f7112-e908-48e4-ae77-69ab8319c099",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "26112711d1e602538e53f9bd5e1222f080991c0315f0a70671e9e769f2503e86"
  },
  "id": "lgtAiGWkFOrzjijz",
  "tags": []
}