Generative Extractor and Document Understanding- Passing Variable in Prompt

Using Generative Extractor activity. I am trying to get the value from variable and pass it dynamically. Can we pass the variable in prompt?

In UiPath Document Understanding, when using the Generative Extractor, it’s currently not possible to pass a variable directly into the prompt of the extractor’s configuration. The prompt is used to define the type of information you want to extract and is typically static, defined during the design time of the automation process.

Note : if you’re looking to pass dynamic data into the extraction process,-Some solution is there

Hey @Vijaya_Kannan_Mani
I think yes you can.
Try use something like this:
"Please extract the following information: " + myVariable + " from the document."

No, unable to pass the variable. I think the prompt is static and we need to be précised on instruction to extract the exact value.

1 Like