18 lines
476 B
QBasic
18 lines
476 B
QBasic
TALK "Please, take a photo of the QR Code and send to me."
|
|
HEAR doc as QRCODE
|
|
TALK "Reading document " + doc + "..."
|
|
text = GET doc
|
|
|
|
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."
|
|
TALK "I will also send it to you..."
|
|
SEND FILE doc
|
|
|
|
ELSE
|
|
TALK "Document was not found, please try again."
|
|
END IF
|
|
|