2025-11-30 16:25:51 -03:00
|
|
|
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
|
|
|
|
2025-11-30 16:25:51 -03:00
|
|
|
DESCRIPTION "Scan a QR Code to load and query a document"
|
2025-11-21 10:44:29 -03:00
|
|
|
|
2025-11-30 16:25:51 -03:00
|
|
|
text = GET doc
|
2025-11-21 10:44:29 -03:00
|
|
|
|
2025-11-30 16:25:51 -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
|
2025-11-30 16:25:51 -03:00
|
|
|
TALK "Document not found, please try again."
|
2025-11-21 10:44:29 -03:00
|
|
|
END IF
|