Hi,
I’m using an iterator that gets data from a Parse JSON module.
TheJSON Module is mapped to a structure containing a list of collection with ‘Tracker Id’ and ‘Message’ keys.
He is the output of JSON module
from the screenshots you have it doesn’t look like the Parse JSON is returning any arrays for the Iterator it iterate on. The messages variable is just a string.
Please provide the output bundles of the module [46] (Parse JSON) by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.
B. Insert as Formatted Code Block
If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:
Method 1: Type code block manually
Add three backticks ``` before and after the content/bundle, like this:
``` content goes here
```
Method 2. Highlight and click the format button in the editor
Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.
This will allow others to better assist you. Thanks!
Hope this helps! Let me know if there are any further questions or issues.
OK, after digging a bit, looks like my JSON that is being parsed is invalid.
This JSON is the output of a gemini module for which i end my user prompt with
“Use this JSON schema to answer :
recipient = {‘Tracker Id’: str, ‘message’: str}
return list[recipient]”
I get a readable JSON but not valid, as many \n and escaping are done.
When I run the same prompt inside Gemini direclty, the response is pure JSON. I don’t understand how to get the raw response from the gemini module. geminicompletion45_output.txt (2.9 KB)