slide-deck-ai / langchain_templates /text_to_json_template.txt
barunsaha's picture
Move JSON generation template to an external file with a placeholder
850d598
raw
history blame
1.03 kB
Convert the given slide deck text into structured JSON output.
Also, generate and add an engaging presentation title.
The output should be only correct and valid JSON having the following structure:
{
"title": "...",
"slides": [
{
"heading": "...",
"bullet_points": [
"...",
[
"...",
"..."
]
]
},
{
...
},
]
}
===
Text:
<REPLACE_PLACEHOLDER>
===
In the output JSON, the `heading` field should contain the heading of each slide,
Each slide object has a `bullet_points` array containing the slide's contents.
The `bullet_points` array can contain strings or array of strings.
The sub-bullets for each slide from the input text should appear as an array of strings inside `bullet_points`.
The `bullet_points` field must not contain any object.
The output JSON must contain everything from the input text, do not lose anything.
Output:
```json