• Instructions to Ask a Question

    Click on the "Ask a Question" button and select the application for which you would like to ask questions.

    We have 5 different products namely - Pabbly Connect, Pabbly Subscription Billing, Pabbly Email Marketing, Pabbly Form Builder, Pabbly Email Verification.

    The turnaround time is 24 hrs (Business Hours - 10.00 AM to 6.00 PM IST, Except Saturday and Sunday). So your kind patience will be highly appreciated!

    🚀🚀Exclusive Discount Offer

    Just in case you're looking for any ongoing offers on Pabbly, you can check the one-time offers listed below. You just need to pay once and use the application forever -
     

    🔥 Pabbly Connect One Time Plan for $249 (🏆Lifetime Access) -  View offer 

    🔥 Pabbly Subscription Billing One Time Plan for $249 (🏆Lifetime Access) - View offer

OpenAI file attachment

edwardzev

Member
Your Task History ID
IjU3NjUwNTZmMDYzNjA0MzM1MjZmNTUzMTUxMzE1MTZiNTQzOTBmMzAi_pc
I am trying to build workflow that is triggered by an email parser, receive attachment url (invoice - which is pdf file with open text). Fetch details from invoice using openai, and stores it in airtable or any other spreadsheet.

I built an assistant. tested it in playground and the assistant analyze quite efficiently the uploaded file and returns needed details (invoice num, sum, etc)

Step1 - trigger=>attachment url
Step2 - upload file to assistant=>file id
Step3 - create thread=> thread id
Step4 - create message with attachment - here i have a problem. i can't get message created with file id, that contains pdf file, although it is obviously uploaded since I received file id.
Step5 - create run => status queued. Wait a bit
Step6 - list messages=>I get response that indicate that the assistant didn't really checked the uploaded file.

I am aware that the easier option is to retrieve text with the help of third party pdf parser like pdf.co, but since openai assistant easily retrieve data from the open base pdf, i want to make it available through the direct uploading of the file, and not by feeding the extracted text.
 

ArshilAhmad

Moderator
Staff member
Hi @edwardzev,

In the 'Create Message' action step, please enable mapping, then map the File ID enclosed within double quotes and square brackets, and see if that fixes your issue.
1736015290620.png
 

ArshilAhmad

Moderator
Staff member
Please allow us some time to look into this concern. We will get back to you with an update soon.
 

edwardzev

Member
Thank you.
I tried. It returns "Invalid type for 'attachments[0].file_id': expected a string, but got an array instead."
My guess is that in TYPE field I chose TEXT (not image, not image url obviously) but seems TEXT also wrong. My guess.
Pls check screenshot.
1736279646993.png
 

ArshilAhmad

Moderator
Staff member
Could you please click on 'Re-Capture Email Parser Response' and capture a new file in the Email Parser trigger step? Once done, please let us know.
1736280012920.png
 

ArshilAhmad

Moderator
Staff member
Thank you for uploading a new file. Please allow us some time to review this concern. We will get back to you with an update shortly.
 

Preeti Paryani

Well-known member
Staff member
Hello @edwardzev ,

It seems there have been changes made to your workflow, and as a result, we are unable to locate the OpenAI steps. We kindly request you to add these steps back so we can proceed with testing the issue.

1736573809057.png


Thank you for your cooperation!
 

quantum.je

Member
Hi @edwardzev & @Preeti Paryani !

I follow exactly the same workflow and have tested it with both PNG and PDF files. However, I encounter an error message at the last step:

"Files were not found."

Could you let me know how I can help in return? I’m happy to conduct additional tests if needed.

Also, has this type of workflow (e.g., document analysis via OpenAI) already been implemented on Pabbly's side?

Thank you in advance for your support!

Access to my workflow : here

Capture d'écran 2025-01-21 174602.png



Capture d'écran 2025-01-21 174611.png
Capture d'écran 2025-01-21 174807.png
 
Last edited:
Top