Integration of ChatGPT in Forio Simulation for Generating PDF Reports

Hi everyone,

I was wondering if there’s an example or guidance on integrating ChatGPT within a Forio simulation?

Specifically, I’m looking to achieve the following:

  • At the end of the simulation, based on the user’s score and the specific steps they’ve taken, ChatGPT would generate a customized report.
  • This report would be trained on predefined content and then made available for the user to download in PDF format.

Any help or direction would be greatly appreciated!

Thanks in advance,
Greg

Hi Greg,

Thanks for the email! We are tracking at Forio all the exciting advances that are occurring with generative AI. We’ve done some work on this inhouse with other Forio products but do not yet have demo or sample code showing integration with Epicenter.

If you’d like to experiment with this, you’ll need an API key from platform.openai.com. You can use JavaScript code in a Forio simulation to create a prompt, including dynamic simulation data. You can ask OpenAi to format the response in the form of a JSON object which will make it easier to parse. Then include it in a report in the simulation.

WILL