← All blocks

AI chat conversation with citations

ai-chat · conversation · ai-chat-console

npx shadcn@latest add @plus-ui/ai-chat-console

Default content

{
  "brand": "wisplight",
  "workspace": {
    "name": "Mosswell",
    "brand": "mosswell"
  },
  "user": {
    "name": "Leah Moreau",
    "avatar": {
      "src": "https://images.unsplash.com/photo-1508214751196-bcfd4ca60f91?auto=format&fit=crop&crop=faces&w=96&h=96&q=80",
      "alt": "Leah Moreau"
    }
  },
  "newChat": "New chat",
  "threads": {
    "heading": "Recent",
    "searchLabel": "Search chats",
    "searchPlaceholder": "Search chats",
    "openLabel": "Chats",
    "current": 0,
    "groups": [
      {
        "label": "Today",
        "items": [
          {
            "title": "Refunds for orders shipped outside the EU",
            "href": "#t1"
          },
          {
            "title": "Draft the October supplier update",
            "href": "#t2"
          }
        ]
      },
      {
        "label": "This week",
        "items": [
          {
            "title": "Summarise Q3 support themes",
            "href": "#t3"
          },
          {
            "title": "Onboarding plan for the new warehouse lead",
            "href": "#t4"
          },
          {
            "title": "Which carriers ship to Norway?",
            "href": "#t5"
          }
        ]
      },
      {
        "label": "Earlier",
        "items": [
          {
            "title": "Holiday returns window, explained simply",
            "href": "#t6"
          },
          {
            "title": "Compare the two packaging quotes",
            "href": "#t7"
          }
        ]
      }
    ]
  },
  "sources": {
    "heading": "Connected sources",
    "manage": {
      "label": "Manage sources",
      "href": "#sources"
    },
    "items": [
      {
        "name": "Ops handbook",
        "kind": "wiki",
        "detail": "212 pages · synced 4 min ago",
        "status": "synced",
        "statusLabel": "Synced"
      },
      {
        "name": "Support macros",
        "kind": "doc",
        "detail": "86 replies · synced 1 h ago",
        "status": "synced",
        "statusLabel": "Synced"
      },
      {
        "name": "Shared drive",
        "kind": "drive",
        "detail": "1,940 files · 63% read",
        "status": "syncing",
        "statusLabel": "Reading"
      },
      {
        "name": "#support channel",
        "kind": "chat",
        "detail": "Access expired yesterday",
        "status": "error",
        "statusLabel": "Reconnect"
      }
    ]
  },
  "composer": {
    "label": "Message Wisplight",
    "placeholder": "Ask about a policy, a customer or a document…",
    "attach": "Attach a file",
    "modelLabel": "Model",
    "models": [
      "Balanced",
      "Thorough",
      "Quick"
    ],
    "model": "Balanced",
    "send": "Send",
    "note": "Answers come from Mosswell's sources and may be wrong. Check the cited pages."
  },
  "conversation": {
    "title": "Refunds for orders shipped outside the EU",
    "meta": "Today · cites 3 documents",
    "question": {
      "text": "A customer in Oslo wants to return a jacket bought five weeks ago. Can we refund it, and who pays for the return shipping?",
      "time": "10:42"
    },
    "answer": {
      "paragraphs": [
        "Yes, you can refund it. Orders shipped outside the EU have a 60-day return window, counted from the delivery date, so five weeks is well inside it [1].",
        "If the customer wants to keep things simple, the support macro “Non-EU return, refund approved” already covers the wording, including the customs note [2]."
      ],
      "list": [
        "The customer pays return shipping for non-EU orders, unless the item arrived damaged or wrong [1].",
        "Norway is treated as non-EU for returns, even though it is in the EEA [3].",
        "Refunds go back to the original payment method within 5 business days of the parcel arriving [1]."
      ],
      "time": "10:42"
    },
    "sourcesLabel": "Sources",
    "citations": [
      {
        "title": "Returns and refunds policy 2026",
        "kind": "wiki",
        "location": "Ops handbook › Customers › Returns",
        "excerpt": "Non-EU orders: 60 days from delivery. Customer covers return postage unless the item is faulty or incorrect.",
        "updated": "Updated Sep 2",
        "href": "#source-1"
      },
      {
        "title": "Non-EU return, refund approved",
        "kind": "doc",
        "location": "Support macros › Returns",
        "excerpt": "Thanks for sending this back. Once it reaches us we refund in full; customs forms are attached.",
        "updated": "Updated Aug 18",
        "href": "#source-2"
      },
      {
        "title": "Shipping regions and carriers",
        "kind": "sheet",
        "location": "Shared drive › Logistics",
        "excerpt": "NO, CH, IS and UK: non-EU for duties and returns. Express courier only, tracked.",
        "updated": "Updated Jul 30",
        "href": "#source-3"
      }
    ],
    "followUps": {
      "label": "Ask next",
      "items": [
        "Draft the reply to the customer",
        "What if the jacket was a sale item?",
        "Show me last month's non-EU returns"
      ]
    },
    "actions": {
      "copy": "Copy",
      "helpful": "Helpful",
      "notHelpful": "Not helpful",
      "regenerate": "Try again"
    },
    "assistantName": "Wisplight"
  },
  "empty": {
    "greeting": "Good morning, Leah",
    "subtitle": "Ask anything about how Mosswell works. I answer from your handbook, macros and shared drive, and show you where each answer came from.",
    "groups": [
      {
        "title": "Support",
        "icon": "message",
        "prompts": [
          {
            "title": "Draft a reply to a late-delivery complaint",
            "description": "Uses the tone from your support macros."
          },
          {
            "title": "What is our returns window for the UK?",
            "description": "Cites the returns policy."
          }
        ]
      },
      {
        "title": "Operations",
        "icon": "truck",
        "prompts": [
          {
            "title": "Summarise this week's warehouse notes",
            "description": "From the shared drive, newest first."
          },
          {
            "title": "Which carriers do we use for Norway?",
            "description": "Checks the shipping regions sheet."
          }
        ]
      },
      {
        "title": "Team",
        "icon": "users",
        "prompts": [
          {
            "title": "Write an onboarding plan for a new hire",
            "description": "Follows the first-week checklist."
          },
          {
            "title": "Who owns supplier relationships?",
            "description": "Looks up roles in the ops handbook."
          }
        ]
      }
    ]
  }
}