update and code refactoring focused on: 1. Adding new documentation pages to the table of contents 2. Restructuring the bot templates documentation 3. Changing keyword syntax from underscore format to space format (e.g., `SET_BOT_MEMORY` → `SET BOT MEMORY`) 4. Updating compiler and keyword registration to support the new space-based syntax 5. Adding new keyword modules (social media, lead scoring, templates, etc.) Refactor BASIC keywords to use spaces instead of underscores Change keyword syntax from underscore format (SET_BOT_MEMORY) to more natural space-separated format (SET BOT MEMORY) throughout the codebase. Key changes: - Update Rhai custom syntax registration to use space tokens - Simplify compiler preprocessing (fewer replacements needed) - Update all template .bas files to use new syntax - Expand documentation with consolidated examples and new sections - Add new keyword modules: social_media, lead_scoring, send_template, core_functions, qrcode, sms, procedures, import_export, llm_macros, on_form_submit
61 lines
2.2 KiB
QBasic
61 lines
2.2 KiB
QBasic
' IT Helpdesk Template - Start Script
|
||
' Sets up tools, knowledge base, and provides welcome message
|
||
|
||
' Setup Tools
|
||
ADD TOOL "create-ticket"
|
||
ADD TOOL "check-ticket-status"
|
||
ADD TOOL "my-tickets"
|
||
|
||
' Setup Knowledge Base
|
||
USE KB "helpdesk.gbkb"
|
||
|
||
' Set Context
|
||
SET CONTEXT "it helpdesk" AS "You are an IT helpdesk assistant. You help users create support tickets, check ticket status, and troubleshoot common issues. Always gather necessary information before creating tickets: issue description, urgency level, and affected systems. Be helpful and professional."
|
||
|
||
' Setup Suggestions
|
||
CLEAR SUGGESTIONS
|
||
|
||
ADD SUGGESTION "new ticket" AS "I need to report a problem"
|
||
ADD SUGGESTION "status" AS "Check my ticket status"
|
||
ADD SUGGESTION "password" AS "I need to reset my password"
|
||
ADD SUGGESTION "vpn" AS "I'm having VPN issues"
|
||
ADD SUGGESTION "email" AS "Email not working"
|
||
|
||
' Welcome Message
|
||
BEGIN TALK
|
||
🖥️ **IT Helpdesk Support**
|
||
|
||
Welcome! I'm your IT support assistant, available 24/7 to help you.
|
||
|
||
**How I can help:**
|
||
• 🎫 Create a new support ticket
|
||
• 🔍 Check the status of existing tickets
|
||
• 🔑 Password resets and account issues
|
||
• 🌐 Network and VPN problems
|
||
• 📧 Email and communication issues
|
||
• 💻 Hardware and software support
|
||
|
||
**Quick tip:** For urgent issues affecting multiple users, please mention "urgent" or "critical" so I can prioritize accordingly.
|
||
|
||
What can I help you with today?
|
||
END TALK
|
||
|
||
BEGIN SYSTEM PROMPT
|
||
You are an IT Helpdesk support assistant. Your responsibilities include:
|
||
|
||
1. Ticket Management - Create support tickets with complete information
|
||
2. Troubleshooting - Try to resolve common issues using the knowledge base
|
||
3. Priority Assessment:
|
||
- Critical: System down, security breach, multiple users affected
|
||
- High: Single user unable to work, important deadline
|
||
- Medium: Issue affecting work but workaround exists
|
||
- Low: Minor inconvenience, feature requests
|
||
|
||
Before creating a ticket, collect:
|
||
- Clear description of the issue
|
||
- When the issue started
|
||
- Error messages if any
|
||
- Steps already tried
|
||
|
||
Always try to resolve simple issues immediately before creating tickets.
|
||
END SYSTEM PROMPT
|