""" Sample knowledge base for the customer support chatbot demo. Covers a fictional SaaS product: FlowBar (project management tool) """ FAQ_DATA = { "general": [ { "q": "What is FlowBar?", "a": "FlowBar is a cloud-based project management platform designed for small to medium teams. It combines task tracking, time management, file sharing, and real-time collaboration in one interface. Plans start at $15/user/month." }, { "q": "How do I sign up for FlowBar?", "a": "Visit flowbar.io and click 'Start Free Trial'. Enter your email, create a password, and choose a workspace name. No credit card required for the 14-day trial. You'll be set up in under 2 minutes." }, { "q": "Is there a free plan?", "a": "Yes. The free plan supports up to 3 users, 5 active projects, and 2GB of file storage. It includes basic task management and a shared calendar. Upgrade anytime to unlock unlimited projects, guests, and advanced reporting." }, { "q": "Which payment methods do you accept?", "a": "We accept Visa, Mastercard, American Express, Discover, and PayPal. Annual billing saves you 20% versus monthly. Invoices are available under Billing > Payment History." }, { "q": "Can I cancel anytime?", "a": "Yes. You can cancel from Billing > Plan in your workspace settings. Your access continues until the end of the current billing period. No cancellation fees. We'll also export your data as CSV on request." }, ], "account": [ { "q": "I forgot my password", "a": "Click 'Forgot Password' on the login page. Enter your workspace email and we'll send a reset link. The link expires in 30 minutes. If you don't see it, check your spam folder or contact support@flowbar.io." }, { "q": "How do I change my email address?", "a": "Go to Profile > Account Settings > Email. Enter your new email and click 'Send Verification'. You'll need to verify both the old and new addresses for security." }, { "q": "Can I add team members?", "a": "Absolutely. Go to Workspace > Members > Invite Members. Enter email addresses (separated by commas) and choose their role: Admin, Editor, or Viewer. Each invited member receives an email with a join link." }, { "q": "What roles and permissions are available?", "a": "Three roles: Admin (full access — billing, invites, all projects), Editor (create and edit tasks, upload files, comment), Viewer (read-only on assigned projects). Role changes take effect immediately." }, { "q": "How do I delete my workspace?", "a": "Only a workspace Admin can delete a workspace. Go to Workspace > Settings > Danger Zone > Delete Workspace. Type the workspace name to confirm. This action is permanent and irreversible — your data will be purged within 48 hours." }, ], "features": [ { "q": "How do I create a task?", "a": "Click the '+' button in any project view, or use the keyboard shortcut 'T'. Fill in the task title, assignee, due date, priority, and description. You can also add labels, attachments, and subtasks. Tasks auto-save as you type." }, { "q": "What view types are available?", "a": "Five views: Board (Kanban columns), List (sortable spreadsheet), Timeline (Gantt chart), Calendar, and Dashboard. Switch between them using the tabs at the top of any project. Each view saves your filters and group-bys." }, { "q": "Can I set task dependencies?", "a": "Yes, on the Pro plan and above. Open a task, click the 'Dependencies' tab, and link to blocking or blocked tasks. The Timeline view shows dependency chains visually. A task cannot be marked complete while its blockers are open." }, { "q": "Is there a mobile app?", "a": "Yes. FlowBar has native iOS and Android apps available on the App Store and Google Play. They support all core features: task management, comments, file uploads, and push notifications. Offline mode is coming in Q3." }, { "q": "Does FlowBar integrate with Slack or Teams?", "a": "Yes. We offer native integrations with Slack, Microsoft Teams, Gmail, Google Calendar, and Zapier. Go to Workspace > Integrations to connect. You can configure notifications to post to specific Slack channels or Teams channels." }, ], "billing": [ { "q": "How does billing work?", "a": "Billing is per active user per month. You're charged on the 1st of each month for the previous month's usage. Invoices are emailed and available under Billing > Payment History. Prepaid annual billing saves 20%." }, { "q": "What happens if I exceed my plan limits?", "a": "You'll receive a notification at 80% and 100% of your limit. For file storage, uploads pause until you upgrade or free up space. For user limits, you can add members beyond your plan but will be charged the prorated difference." }, { "q": "Can I get a refund?", "a": "We offer a full refund within the first 14 days of any paid plan. After 14 days, refunds are prorated for unused time. Contact billing@flowbar.io with your workspace name and reason. Refunds are processed within 5-7 business days." }, { "q": "How do I download my invoice?", "a": "Navigate to Billing > Payment History. Each charge has a 'Download Invoice' button. Invoices include your company name, address, and VAT/GST if applicable. You can also request consolidated monthly invoices from billing@flowbar.io." }, ], "troubleshooting": [ { "q": "The app is loading slowly", "a": "Try these steps: 1) Clear your browser cache and cookies, 2) Disable browser extensions temporarily, 3) Check your internet speed at speedtest.net, 4) Try a different browser (Chrome or Firefox recommended). If the issue persists, check status.flowbar.io for outages." }, { "q": "My changes aren't saving", "a": "This is usually a browser cache issue. Hard refresh (Ctrl+Shift+R on Windows, Cmd+Shift+R on Mac) or open the app in an incognito/private window. If you see a red banner at the top, your session may have expired — log out and back in." }, { "q": "I'm not receiving email notifications", "a": "First, check your spam folder for noreply@flowbar.io. Add us to your contacts list. Then check Notification Settings (Profile > Notifications) to ensure the events you want are toggled on. If still missing, ask your workspace Admin to whitelist our sending domain." }, { "q": "How do I export my data?", "a": "Go to Workspace > Settings > Data Export. You can export all projects as CSV, JSON, or PDF. Large exports are delivered via email as a zip file within 24 hours. Admins can also export the full workspace audit log." }, ], } # Flatten into searchable list FAQ_LIST = [] for category, items in FAQ_DATA.items(): for item in items: FAQ_LIST.append({ "category": category, "question": item["q"], "answer": item["a"], })