botserver/templates/whatsapp.gbai/whatsapp.gbdialog/send.bas
Rodrigo Rodriguez (Pragmatismo) 5d21bba1e1 ``` Add KB Statistics keywords and infrastructure documentation
- Add KB Statistics keywords for Qdrant vector database monitoring: KB
  STATISTICS, KB COLLECTION STATS, KB DOCUMENTS COUNT, KB DOCUMENTS
  ADDED SINCE, KB LIST COLLECTIONS, KB STORAGE SIZE

- Add comprehensive infrastructure documentation:
  - Scaling and load balancing with LXC containers
  - Infrastructure design with encryption, sharding strategies
  - Observ
2025-11-30 16:25:51 -03:00

20 lines
607 B
QBasic

PARAM phone AS PHONE LIKE "122233333333" DESCRIPTION "WhatsApp phone number with country code"
PARAM template AS STRING LIKE "newsletter-zap.txt" DESCRIPTION "Template file name to send"
PARAM variables AS OBJECT LIKE "{name: 'John'}" DESCRIPTION "Template variables for personalization" OPTIONAL
DESCRIPTION "Send a WhatsApp template message to a phone number"
SEND TEMPLATE TO phone, template, variables
WITH log
timestamp = NOW()
phoneNumber = phone
templateFile = template
status = "sent"
END WITH
SAVE "whatsapp_log.csv", log
TALK "WhatsApp message sent to " + phone
RETURN phone