diff --git a/site/docs/chapter-05-gbdialog-reference.md b/site/docs/chapter-05-gbdialog-reference.md index d0d5bc91..764410f4 100644 --- a/site/docs/chapter-05-gbdialog-reference.md +++ b/site/docs/chapter-05-gbdialog-reference.md @@ -76,9 +76,7 @@ To organize the instructions functionally, I'll group them into five categories: | HEAR _variable_ AS FILE | Returns a file uploaded by the user to be saved. |
HEAR file AS FILE| | HEAR _variable_ AS AUDIO | Returns an audio file uploaded by the user to be saved. |
SAVE file AS "uploads/myfile.pdf"
TALK "File uploaded and saved."
HEAR audio AS AUDIO| | INCLUDE file | Includes a file into .gbdialog. |
SAVE audio AS "recordings/audiofile.mp3"
TALK "Audio received and saved."
INCLUDE "script.gbdialog"| -| UPLOAD file | Uploads a file to a storage blob, like Azure Storage. |
TALK "File included."
UPLOAD "| - -path/to/file.pdf"
UPLOAD "path/to/file.pdf"| | DIR path | Returns a list of files in the specified directory. |
TALK "File uploaded to cloud storage."
files = DIR "uploads/"| | FILL | Fills data into a Word document to be exported as images. |
TALK "Files in directory: " + files.
FILL "template.docx", data| | SAVE _variable_ AS "path/file" | Saves the specified variable as a file at the given path. |
TALK "Document filled and exported."
SAVE file AS "path/to/save/file.pdf"|
TALK "File saved."