curl -X PUT -d '{"files":[{"file_id":"abc-123","extension":"pdf"}]}' -H "Content-Type: application/json" https://api.getguru.ai/automations/automation-123/invocations
Copy
Ask AI
{ "id":"invocation-123"}
Automation API
Invoke Automation with File
How to invoke an Automation using a File as input
Copy
Ask AI
curl -X PUT -d '{"files":[{"file_id":"abc-123","extension":"pdf"}]}' -H "Content-Type: application/json" https://api.getguru.ai/automations/automation-123/invocations
Copy
Ask AI
{ "id":"invocation-123"}
You can pass files as the input to an Automation. Each file is first uploaded to Guru,
and then the file IDs passed to the invocation endpoint to use as input.First, complete the following two steps for each file that you wish to upload:
Array of objects. Each object has a file_id property, which is the value returned when the file was created,
and an extension property, indicating the type of the file. Accepted values are pdf or txt.