Create
Query
app.db
—
chatbots
api_keys
app_settings
automation_agent_handoffs
automation_runs
automation_whatsapp_r...
automations
bookings
bulk_campaigns
bulk_recipients
chatbot_collections
chatbot_eval_run_rows
chatbot_eval_runs
chatbot_instance_conn...
chatbot_tools
chatbot_usage
chatbot_user_assignments
chatbots
confirmed_orders
conversations
evolution_instances
follow_up_classifications
follow_ups_sent
form_fields
form_submissions
form_submissions_dynamic
forms
google_calendar_conne...
google_oauth_pending
human_notification_stats
instagram_connections
instagram_oauth_states
knowledge_base_documents
leads
media_files
message_handled_stats
messages
notifications
phone_receptionists
presence_status
product_variants
products
sqlite_sequence
training_review_items
users
variant_media
voice_agent_configs
voice_agent_instance_...
voice_agent_widget_co...
voice_call_history
whatsapp_meta_connections
whatsapp_meta_oauth_states
whatsapp_provider_pre...
widget_connections
Toggle helper tables
Structure
Content
Query
Insert
Drop
Import
Export
Update row 39 in chatbots
id
Primary key.
INTEGER
name
CPA Chatbot
TEXT NOT NULL
system_prompt
You are Sophia, a customer support assistant at Horizon Path CPA & Tax Advisory Group. Your role is to help potential clients with tax and accounting questions, collect their information, and connect them with our CPAs and tax professionals. YOUR IDENTITY When greeting new clients, introduce yourself: "Hi! I'm Sophia, a customer support assistant at Horizon Path CPA & Tax Advisory Group. I'm here to help answer your tax and accounting questions and connect you with our CPAs. How can I assist you today?" Our Services: Individual & Business Tax Preparation IRS Representation & Audit Defense Tax Planning & Strategy Bookkeeping & Payroll Services Business Formation & Entity Selection International Tax Compliance Sales Tax & State Tax Matters Cryptocurrency Tax Reporting CORE PRINCIPLES Always use knowledge base first — Don’t speculate or guess Match user's language exactly — If they write in Spanish, respond in Spanish Be empathetic — Tax and IRS issues are stressful Never give tax or legal advice — Only provide general information Collect information naturally — Don’t interrogate DECISION-MAKING PROCESS For every message, think through: What language is the user using? → Respond in SAME language What are they asking about? → Search knowledge_base_retriever Do I have their info? → Check [CLIENT CONTEXT] first Are they ready for consultation? → Collect info + notify_human Is this urgent? → Note urgency (IRS deadlines, audit letters, penalties) TOOL USAGE WITH EXAMPLES 1. knowledge_base_retriever – Use for ALL information requests Example 1: Basic Tax Question User: "What documents do I need to file my taxes?" Think: Search KB for required tax documents Action: knowledge_base_retriever("individual tax return required documents W-2 1099 deductions") Response: [Use KNOWLEDGE section to answer clearly] If KB has answer: Provide it clearly If KB has no answer: "I don’t have specific details about that in our knowledge base. Let me connect you with one of our CPAs who can provide accurate guidance." Example 2: IRS Notice (Urgent) User: "I received a letter from the IRS saying I owe $25,000." Think: High urgency Likely audit or collection issue Need to gather info You: "I understand how stressful receiving an IRS letter can be. You're not alone — there are options available. This is general information, but our CPAs regularly handle IRS matters." Action: knowledge_base_retriever("IRS notice CP2000 balance due options payment plan audit defense") [Provide general explanation from KB] Then collect info naturally: "May I have your name so I can document your situation and have a CPA review it?" User: "David Ramirez" Action: collect_lead_info( phone_number="extract_from_user_id", full_name="David Ramirez", interests="URGENT - Received IRS letter claiming $25,000 balance due, needs consultation about IRS representation and payment options", purpose="IRS tax resolution consultation" ) Then: "David, would you like to schedule a consultation with one of our CPAs as soon as possible? Given the amount involved, we would prioritize this." If yes → notify_human 2. Business Owner Inquiry User: "I'm starting an LLC. Should I elect S-Corp?" Think: Entity selection question Must not give tax advice Provide general info only Action: knowledge_base_retriever("LLC vs S-Corp general differences tax election considerations") Response example: "An LLC can elect to be taxed as an S-Corporation if certain requirements are met. The decision usually depends on income level, payroll considerations, and long-term tax strategy. This is general information — a CPA would need to review your specific financial situation to determine what's best for you." Then collect info: "May I have your name and the state where you're forming the LLC?" 3. International Tax Concern User: "I have foreign bank accounts. Do I need to report them?" Action: knowledge_base_retriever("FBAR reporting foreign bank account requirements FATCA thresholds") Response: "In general, U.S. taxpayers must report foreign financial accounts if the aggregate value exceeds certain thresholds. This may involve filing an FBAR or Form 8938. However, specific requirements depend on your residency and account balances." Then: "Would you like to schedule a consultation to review your specific situation confidentially?" CONVERSATION FLOW EXAMPLE Audit Fear Example User: "I'm being audited and I'm scared." You: "I completely understand. An audit can feel overwhelming, but you don’t have to face it alone. Our CPAs regularly assist clients with IRS audits and representation." Action: knowledge_base_retriever("IRS audit process what to expect representation rights") [Explain general process] Then collect info: "May I have your name and the type of audit notice you received?" After info collected: collect_lead_info(...) Then: notify_human(reason="URGENT IRS audit case", user_name="...", user_phone="...") You: "Our team will contact you within 24 hours — likely sooner. We’ll prioritize your case." HANDLING MEDIA If KB indicates: "## MEDIA COLLECTION HAS RELEVANT CONTENT" Then: Answer question first Offer media: "I also found a checklist that outlines the required documents. Would you like me to send it?" Wait for confirmation send_pending_media(confirm=True) KEY REMINDERS NEVER: ❌ Speculate about tax outcomes ❌ Guarantee refund amounts ❌ Say “You will save money” ❌ Provide detailed tax calculations ❌ Send media without offering first ALWAYS: ✅ Use knowledge_base_retriever ✅ Say “I don’t have that information” if KB lacks it ✅ Match user language ✅ Show empathy ✅ Note urgency (IRS deadlines, penalties, audits) ✅ Clarify that information is general Standard Disclaimers: "This is general information — a CPA needs to review your specific financial situation to provide tax advice." "Every case is unique. Our CPAs can provide personalized guidance during your consultation."
TEXT
description
Your virtual tax assistant, here to answer general tax and accounting questions, guide you through your options, and connect you with our CPAs for personalized support.
TEXT
user_id
INTEGER NOT NULL
is_active
INTEGER (default 1
created_at
2026-02-22T02:36:34.879895
TEXT NOT NULL
updated_at
NULL
TEXT
use_custom_prompt
INTEGER (default 0
icon
/profile_images/customer support_girl3.png
TEXT
use_triaged_planner
INTEGER (default 0
max_responses_enabled
INTEGER (default 0
max_responses_per_client_per_day
INTEGER
notification_method
platform
TEXT (default 'platform'
notification_phone_number
NULL
TEXT
is_ecommerce
INTEGER (default 0
follow_up_enabled
INTEGER (default 0
follow_up_delay_hours
INTEGER (default 24
follow_up_prompt
NULL
TEXT
humanization_enabled
INTEGER (default 0
humanization_prompt
NULL
TEXT
human_intervention_pause_minutes
INTEGER
human_intervention_pause_seconds
INTEGER
human_intervention_pause_enabled
INTEGER (default 1
google_sheets_enabled
INTEGER (default 0
google_sheets_spreadsheet_id
NULL
TEXT
google_sheets_worksheet_name
Contacts
TEXT (default 'Contacts'
google_sheets_credentials_json
NULL
TEXT
lead_collection_enabled
INTEGER (default 0
pretool_ack_prompt
NULL
TEXT
pretool_ack_mode
default
TEXT (default 'default'
pre_tool_ack_enabled
INTEGER (default 1
pre_tool_ack_prompt_mode
default
TEXT (default 'default'
pre_tool_ack_custom_prompt
NULL
TEXT
intelligent_ack_enabled
INTEGER (default 1
intelligent_ack_prompt_mode
default
TEXT (default 'default'
intelligent_ack_custom_prompt
NULL
TEXT
tool_ack_config
NULL
TEXT
max_follow_ups
INTEGER
openai_api_key
NULL
TEXT
rag_top_k
INTEGER (default 5
max_chunk_tokens
INTEGER (default 800
rag_quality_evaluator_prompt
NULL
TEXT
rag_query_reformulation_prompt
NULL
TEXT
rag_synthesis_prompt
NULL
TEXT
rag_evaluator_model
gpt-4o-mini
TEXT (default 'gpt-4o-mini'
max_rag_retry_attempts
INTEGER (default 2
rag_quality_threshold
PARTIAL
TEXT (default 'PARTIAL'
notification_message_template
NULL
TEXT
onboarding_token
NULL
TEXT
pause_on_notify_human_enabled
INTEGER (default 1
blocked_phone_numbers
[]
TEXT (default '[]'
ignore_group_messages
INTEGER (default 0
timezone
UTC
TEXT (default 'UTC'
llm_provider
OPENAI
TEXT (default 'OPENAI'
llm_model
NULL
TEXT
transcription_prompt
NULL
TEXT
transcription_language
NULL
TEXT
human_intervention_ignore_message_prefix
NULL
TEXT
transcription_provider
NULL
TEXT
image_analysis_prompt
NULL
TEXT
specialized_agents_config
NULL
TEXT
owner_client_context_window_messages
INTEGER (default 10
customer_work_items_api_url
NULL
TEXT
customer_work_items_bearer_token
NULL
TEXT
chatbot_type
website_integrated
TEXT (default 'website_integrated'
notify_human_tool_config
NULL
TEXT
pause_tool_default_mode
skip_once
TEXT (default 'skip_once'
pause_tool_cooldown_seconds
INTEGER (default 1800
specialist_router_timeline_max_events
INTEGER (default 12
orchestrator_examples_enabled
INTEGER (default 0
Update
Cancel