May 6, 2024, 6:23 a.m. | Matt Lewandowski

DEV Community dev.to

Did you know that you can get a well structured JSON Object {} back from OpenAI's API, without a super hacky prompt? Well you can, and it's super easy!


I recently built a feature on my website, that will generate a Sprint Retrospective template using OpenAI's completions API and I want to show you how I did it.






Getting started


What do I mean by a well-structured JSON Object? I mean the response from the API will be …

ai api completions api easy feature generate javascript json object openai prompt retrospective show template tutorial webdev website will

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US