10-05-26 06:26 AM
Hi,I want to know how we can inject pdf files directly to agent so that it will extract the details from the PDF in the Agent Studio of Agentic Workflows.
11-05-26 04:52 AM - edited 11-05-26 05:24 AM
Hi @neha.kumari67, what is your trigger and what is built so far?
Along with other ones, even if you are using a chat trigger, there is an option to upload files.
After that perhaps use "Ask AI" action and in the Data Selector pass the content of the files.
11-05-26 10:58 AM
"Error: {\n \"file\": [\n \"Expected file url or base64 with mimeType, received: https://{domain-name}/regions/eu-central/api/workflows/v1/step-files/signed?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEifQ.eyJmaWxlSWQiOiJuR01LdGNaaXI2N3ZQVU1UWW0zb3QiLCJpYXQiOjE3Nzg0OTI2NjcsImV4cCI6MTc4MTA4NDY2NywiaXNzIjoiYWN0aXZlcGllY2VzIn0.RdD8WvnXq4tzIFrvjTU1Kc09-pSlKXHjuS15zt9SIUM\"\n ]\n}\n" Getting this error while using any files in the actions available in Workflow studio like Update Files,any attachments which are getting downloaded by a mail using IMAP Trigger
11-05-26 11:06 AM
Convert the file contents to base64 as it says in the error message, and then pass that in further actions.
11-05-26 11:21 AM
Currently I am creating a workflow where i am using an IMAP Trigger and from received mails i want to download the files and and send it to the Agent to extract PDF details.how i can acheive it...
11-05-26 11:24 AM
Does the Json output coming out from the IMAP trigger not have "Files" in it? If you are able to share screenshots that will help for a faster resolution.
19-05-26 04:54 AM
How did it go? Every trigger has an output which you can make use of.
Please share your findings so that this will help community members on WorkHQ topics.
Thanks.