botserver/templates/ai-search.gbai/ai-search.gbdialog/qr.bas

14 lines
419 B
QBasic
Raw Normal View History

PARAM doc AS QRCODE LIKE "photo of QR code" DESCRIPTION "QR Code image to scan and load document"
2025-11-21 10:44:29 -03:00
DESCRIPTION "Scan a QR Code to load and query a document"
2025-11-21 10:44:29 -03:00
text = GET doc
2025-11-21 10:44:29 -03:00
IF text THEN
SET CONTEXT "Based on this document, answer the person's questions:\n\n" + text
2025-11-21 10:44:29 -03:00
TALK "Document ${doc} loaded. You can ask me anything about it."
2025-11-23 20:12:09 -03:00
SEND FILE doc
2025-11-21 10:44:29 -03:00
ELSE
TALK "Document not found, please try again."
2025-11-21 10:44:29 -03:00
END IF