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
28 lines
No EOL
678 B
QBasic
28 lines
No EOL
678 B
QBasic
' General Bots - Welcome Campaign Template
|
|
' Automated drip sequence for new leads/subscribers
|
|
|
|
PARAM lead_email AS string LIKE "user@example.com"
|
|
PARAM lead_name AS string LIKE "John Doe"
|
|
PARAM lead_source AS string LIKE "website"
|
|
|
|
DESCRIPTION "Welcome campaign drip sequence for new leads"
|
|
|
|
' Validate input
|
|
IF ISEMPTY(lead_email) THEN
|
|
THROW "Email is required for welcome campaign"
|
|
END IF
|
|
|
|
IF ISEMPTY(lead_name) THEN
|
|
lead_name = "Friend"
|
|
END IF
|
|
|
|
TALK "Starting welcome campaign for: " + lead_email
|
|
|
|
' Step 1: Immediate Welcome Email
|
|
WITH variables
|
|
.name = lead_name
|
|
.source = lead_source
|
|
.date = TODAY()
|
|
END WITH
|
|
|
|
result = SEND TEMPLATE "welcome-email-1", |