Custom User Input Forms ...

I collect a local file via an input variable. Note that this workflow is successful when using the Native user input and the file upload action. When using the Custom form, no joy, That file name out is ultimately saved to a variabke wherey a Generate Text doc receivers the variable, When this is done using the custom form, the doc from the file upload is never available or something, Again, changing the user input block back to Native, all is good.

if you’re doing it like this, you need to use the “extract text from file” block to get the text. That is done automatically in the native input but custom inputs don’t have that capability.

Thanks Sean. Ill give that a whirl.

Best,

Doug Parcher

Hi Sean … I’ve dev’d another custom form with a file upload input and used your extract text from file block but am getting the same result. If you look at the body in the checkpoint, you will see he ha now file text but is looking for it. The AGENT should already have the student’s work as it is in the {{file}} input variable and “writtenwork” as the saved variable for the generate text block. Not sure at all what’s going on here.

his i

This is from a. copy of the published Agent. Your thoughts? Am I doin sumpin 'tupid?

Thanks again for this …

Here is another shot of the debugger when using a upload file input, with ‘No Prossessing” set. We DO see the URL from the {{file}} var but the Generate Text blocks never actually see the contents of the file, or at lease that’s all I can determine.

Hi @Avocet,

Thanks for the screenshot.

It looks like the issue is with the Extract Text from File block. Please give us a some time to investigate.

Hi @Avocet,

I’m glad to let you know the issue with the Extract Text from File block has been fixed.

You now have two options when working with the User Input block:

Native Interface
If you want users to upload a file:

  1. Set the type to Upload File
  2. Set the processing to Extract Text

All the text will then be extracted and saved to the variable defined in the User Input.

Custom Interface
If you’d rather use a custom setup:

  1. Set the type to Upload File
  2. Set the processing to No Processing

When a file is uploaded, it’ll be saved as a link in the variable you define in the User Input. You’ll then need to reference that variable in the Extract Text from File block so it extracts the text and saves it to a new variable.

Thank you kind sir. Have a good one a while I check em out!!!

Best,

Doug Parcher