# Document to text: Split out multiple documents from within the document

**URL:** <https://community.glideapps.com/t/document-to-text-split-out-multiple-documents-from-within-the-document/82863>\
**Category:** Ask for Help\
**Tags:** ai\
**Created:** [July 1, 2025, 3:06pm UTC](https://community.glideapps.com/t/document-to-text-split-out-multiple-documents-from-within-the-document/82863 "2025-07-01T15:06:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_de\_Freitas](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/paul_de_freitas/32/76268_2.png) [@Paul\_de\_Freitas](https://community.glideapps.com/u/Paul_de_Freitas)\
**Post date:** [July 1, 2025, 3:06pm UTC](https://community.glideapps.com/t/document-to-text-split-out-multiple-documents-from-within-the-document/82863/1 "2025-07-01T15:06:57Z")

</div>

Hi. Our org receives scanned copies of paper surveys completed by email. Rather than enter them in manually, we’re keen to use a document to text action to take an upload of the scanned copy of the surveys and convert the responses into rows of data organised with individual questions answers in the fight field etc.

The document to text AI action is great. Our issue is that the document to upload actually contains multiple surveys, so at some point each survey needs to split out, to then run the workflow. So for instance we get emailed a scanned document containing 12 surveys, each about 4 pages long.

Does anyone know a decent way to achieve this, so that then the document to text extraction workflow run creates a row per survey.

(They have to be completed by paper and it might be a little arduous to request a document per survey).

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![Eric\_Penn](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/eric_penn/32/73888_2.png) [@Eric\_Penn](https://community.glideapps.com/u/Eric_Penn)\
**Post date:** [July 1, 2025, 4:42pm UTC](https://community.glideapps.com/t/document-to-text-split-out-multiple-documents-from-within-the-document/82863/2 "2025-07-01T16:42:29Z")

</div>

Have a look at this

> [@outbox\_tray Glide Workflows Email Trigger Tutorial: Import & Analyze Email Attachments](https://community.glideapps.com/t/glide-workflows-email-trigger-tutorial-import-analyze-email-attachments/82654):
>
> waving_hand Hey fellow Gliders! As a followup to my [three_o_clock Scheduled Workflows Tutorial](https://community.glideapps.com/t/scheduled-workflows-tutorial/81217), I wanted to showcase how you can automatically import email attachments directly into a Glide app using the Email Trigger. This feature is perfect for: → Resume screening → Expense recording → Image analysis → CSV importing In this video, we walk through a practical example of creating a receipt scanner that automatically adds invoices and receipts to your Glide app by simply forwarding an email. We cover…

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 2, 2025, 12:22am UTC](https://community.glideapps.com/t/document-to-text-split-out-multiple-documents-from-within-the-document/82863/3 "2025-07-02T00:22:11Z")

</div>

> [@Paul\_de\_Freitas](#):
>
> So for instance we get emailed a scanned document containing 12 surveys, each about 4 pages long.

I would suggest telling AI the breakpoints between the surveys (e.g: a survey title).

Then, extract the text and convert it to a JSON array with same rules as above.

Loop through that array in a workflow and add rows to the destination table.

---

<div class="post-metadata">

**Author:** ![Paul\_de\_Freitas](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/paul_de_freitas/32/76268_2.png) [@Paul\_de\_Freitas](https://community.glideapps.com/u/Paul_de_Freitas)\
**Post date:** [July 2, 2025, 2:11pm UTC](https://community.glideapps.com/t/document-to-text-split-out-multiple-documents-from-within-the-document/82863/4 "2025-07-02T14:11:20Z")

</div>

Thanks Eric!

I’d used Bob’s other video on the Document to text for the main workflow…I’ll be making use of email trigger now for sure, that will save downloading and uploading the survey.

---

<div class="post-metadata">

**Author:** ![Paul\_de\_Freitas](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/paul_de_freitas/32/76268_2.png) [@Paul\_de\_Freitas](https://community.glideapps.com/u/Paul_de_Freitas)\
**Post date:** [July 2, 2025, 3:04pm UTC](https://community.glideapps.com/t/document-to-text-split-out-multiple-documents-from-within-the-document/82863/5 "2025-07-02T15:04:07Z")

</div>

Excellent! I’ve updated my instructions to include the breakpoint and seem to have arrays now to loop through.

Thanks @ThinhDinh

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [July 9, 2025, 3:04pm UTC](https://community.glideapps.com/t/document-to-text-split-out-multiple-documents-from-within-the-document/82863/6 "2025-07-09T15:04:40Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
