2024-10-02 10:12:03 -03:00
|
|
|
TALK "Please, take a photo of the QR Code and send to me."
|
|
|
|
HEAR doc as QRCODE
|
2024-10-04 00:55:10 -03:00
|
|
|
text = null
|
|
|
|
|
|
|
|
IF doc THEN
|
|
|
|
TALK "Reading document " + doc + "..."
|
|
|
|
text = GET doc
|
|
|
|
END IF
|
2024-10-02 10:12:03 -03:00
|
|
|
|
|
|
|
IF text THEN
|
|
|
|
|
|
|
|
text = "Based on this document, answer the person's questions:\n\n" + text
|
|
|
|
SET CONTEXT text
|
|
|
|
SET ANSWER MODE "document"
|
|
|
|
TALK "Document ${doc} loaded. You can ask me anything about it."
|
2024-10-04 00:55:10 -03:00
|
|
|
TALK "Please, wait while I convert pages to images..."
|
2024-10-02 18:39:25 -03:00
|
|
|
SEND FILE doc
|
2024-10-02 10:12:03 -03:00
|
|
|
|
|
|
|
ELSE
|
|
|
|
TALK "Document was not found, please try again."
|
2024-10-02 18:39:25 -03:00
|
|
|
END IF
|
|
|
|
|