From what I can tell a flex object is a template and custom object/fields you can change on the fly. Essentially creating a database on a flat file platform. The flat file nature of grav is why I like it for these projects and makes it easy to accomplish this type of structure and changes but from outside the platform.
Binapi is responsible for the file transfer, it doesn’t really care what type of file it is. The “blueprint” is controlled by my automation platform. Example I use an AI node to generate the content and define the structure of my content in the prompt. If I wanted to add or change an object/variable on a bulk scale I could just adjust my prompt or create a new automation to update all of the existing articles.
Here is a prompt for the recipe project that takes a step further and formats for SEO and mass readability. I just pasted a random recipe but ideally would pass a variable or data from a scrape.
I pasted the final item.md after it is processed and formatted in the workflow.
Prompt:
Recipe:
Crispy Roasted Sweet Potatoes
PREP TIME
15 mins
COOK TIME
45 mins
TOTAL TIME
60 mins
SERVINGS
4 servings
Ingredients
• 1 tablespoon cornstarch
• 1 1/2 teaspoons kosher salt
• 1/2 teaspoon smoked paprika
• 3 1/2 tablespoons olive oil, divided
• 2 large sweet potatoes (about 14 ounces each), peeled and cut into 3/4-inch pieces
Method
1 Preheat the oven to 450°F.
.
Preheat the pan:
Place a light-colored baking sheet on the center rack of the preheated oven and let heat for 5 minutes.
2.
Coat the potatoes:
Meanwhile, in a large bowl, whisk together the cornstarch, salt, paprika, and 2 1/2 tablespoons of the oil. Add the sweet potatoes
and toss to coat fully.
3.
Arrange the potatoes on the hot pan:
Carefully remove the baking sheet from the oven. Working quickly, drizzle the pan with the remaining 1 tablespoon of oil and tilt
the baking sheet to coat evenly. Pour the sweet potato mixture onto the preheated baking sheet and spread it into an even layer.
4.
Roast:
Roast until golden brown and crispy, turning with a spatula every 10 to 15 minutes, 30 to 40 minutes total. Remove from the oven
and let cool on the baking sheet for 5 minutes, then serve immediately.
For maximum crispness, these potatoes are best eaten right away. They start to soften the longer they sit after roasting. You can
refrigerate leftovers in an airtight container for up to 2 days and reheat in an air fryer at 350°F to get some of the crispiness back.
Love the recipe? Leave us stars and a comment below!
5.
FILED UNDER:
DINNERS MOST RECENT SIDE DISHES POTATOES
Nutrition Facts (per serving)
277
CALORIES
10g
FAT
43g
CARBS
4g
PROTEIN
Instructions:
Rewrite the provided recipe using the following:
Humanize the content: Use a natural, conversational tone. Vary sentence structure, include relevant anecdotes, and avoid repetitive phrasing.
SEO:
Perform thorough keyword research. Identify a primary keyword and 2–3 secondary keywords relevant to the article’s topic and audience.
Naturally integrate the primary keyword in the title (H1), first paragraph, and at least one H2.
Use secondary keywords in subheadings and body text, but avoid keyword stuffing.
- Write a strong, click-enticing meta description with secondary keywords.
- Use concise, descriptive, and engaging headings (H2/H3) with keyword variations.
- Add internal links using descriptive anchor text where relevant.
- Structure:
- Follow the provided outline and metadata template.
- Use bullet points and numbered lists where appropriate for clarity and featured snippet optimization.
- Limit paragraphs to 2–4 sentences for readability.
- Bold key names and figures for emphasis.
- Include impactful, properly formatted quotes (real or attributed to reputable sources).
- Avoid generic AI phrases and ensure the article reads as if written by a seasoned journalist.
- Recency \& Relevance:
- Only use facts, quotes, and data from sources published in the last 30 days unless essential historical context is required for clarity.
- For each referenced source, include the publication date in the citation section.
- Do not include outdated or unrelated historical events unless they directly explain or impact the current news event.
- Focus the article on the specific news event or topic from the provided URL and avoid generalizations or summaries of past events.
- Image Prompts for Leonardo.ai:
- For the same article, generate:
- A detailed prompt for a visually striking header image that captures the article’s main theme, using the Leonardo.ai prompt structure (subject, style, composition, background, lighting, mood). Suggest an SEO-friendly filename for this image based on the primary keyword.
- One or two supporting image prompts, each with a unique, SEO-friendly filename relevant to key article points or sections.
- Output all image prompts and filenames in the JSON structure below.
Article: {{ $json.url }}
1. Article Metadata Template:
---
title: "[Concise, <50 chars] Primary Keyword Phrase"
description: "[1-sentence summary with secondary keywords]"
author: "Johnny Larson"
date: "YYYY-MM-DD"
taxonomy:
tags: [3-5 keywords]
category: [1-2 broad topics]
og_title: "[Social-Media-Optimized Title]"
og_image: "[header_image_filename]"
---
2. Article Structure
Header (H1):
Lead with a breaking news hook or provocative question using the primary keyword.
Intro Paragraph:
Who/What/When/Where/Why (context and significance).
Thesis (core conflict or takeaway).
Section 1 (H2): Key Developments
3–5 critical facts (convert to paragraphs).
Embed quotes and data.
Section 2 (H2): Deeper Analysis
Expert commentary (real or synthesized).
Historical parallels or data trends.
Section 3 (H2): Stakeholder Reactions
Supportive and opposing POVs.
Public sentiment (social media trends/polls).
Section 4 (H2): What’s Next
Timeline of expected events.
Potential scenarios.
Closing (H3):
Forward-looking statement and call-to-action.
Citation Section linking back to referenced sources
*Note: Do not list each section (eg, Deeper Analysis). This is for your reference, use your own section descriptions.
3. Style Guidelines
✅ Use bold for key names/figures
✅ Short paragraphs (2–5 sentences)
✅ Bullet/numbered lists for clarity
✅ Insert 1–2 images (see prompts below)
✅ Minimum of 1500 words
❌ No nested bullets, fake quotes, or generic filler
❌ Do not make up or reference fake articles or links
4. Leonardo.ai Image Prompts
Output in this JSON format:
json
{
"header_image_prompt": "A dynamic action shot of [subject], [artistic style], [composition], [background], [lighting], [mood].",
"header_image_filename": "[primary-keyword-header].jpg",
"supporting_images": [
{
"prompt": "A [description of supporting visual], [style], [composition], [background], [lighting], [mood].",
"filename": "[seo-supporting-keyword-1].jpg"
},
{
"prompt": "A [description of second supporting visual], [style], [composition], [background], [lighting], [mood].",
"filename": "[seo-supporting-keyword-2].jpg"
}
]
}
Each prompt should be pencil sketch/art style. Avoid depictions of children or graphic suffering.
Filenames must be unique, concise, and SEO-optimized for the article’s topic.
Key Restrictions:
❌ No children
❌ No graphic violence or suffering
✅ Use pencil sketch/art styles like in a courtroom
5. SEO Optimization
Primary keyword in H1, intro, and at least one H2
Secondary keywords in subheadings and body
Internal links with descriptive anchor text
Strong, keyword-rich meta title and description
Alt text for images (use filenames and descriptions)
Do not output any explanations or extra text. Only return the formatted article and the JSON image prompt block as specified.
**Output Format Rules:**
- Wrap the image prompt JSON in `###IMAGE_PROMPTS###` delimiters.
- Place the article Markdown after `###ARTICLE_CONTENT###`.
- Validate JSON syntax before outputting.
- No other text outside these blocks.
**Example Output:**
###IMAGE_PROMPTS###
{
"header_image_prompt": "...",
"header_image_filename": "seo-name.jpg",
"supporting_images": [
{"prompt": "...", "filename": "..."}
]
}
###IMAGE_PROMPTS###
###ARTICLE_CONTENT###
---
title: "Your Article Title"
---
Article body...
item.md sent through binapi:
---
title: "Crispy Roasted Sweet Potatoes: The Ultimate Side Dish"
show_title: false
description: "Learn how to make perfectly crispy roasted sweet potatoes with this easy, flavorful recipe—ideal for weeknight dinners or holiday feasts."
author: "Johnny Larson"
date: "2025-05-31"
taxonomy:
tags: ["sweet potatoes", "roasted vegetables", "side dishes", "healthy recipes", "easy dinners"]
category: ["Recipes", "Vegetarian"]
og_title: "Crispy Roasted Sweet Potatoes: A Foolproof Recipe for Perfect Texture"
og_image: "crispy-roasted-sweet-potatoes.jpg"
---
# Crispy Roasted Sweet Potatoes: The Ultimate Side Dish
Ever pulled a tray of roasted sweet potatoes from the oven, only to find them soggy instead of crispy? You’re not alone. Achieving that golden, crunchy exterior while keeping the inside tender is a culinary balancing act—but this recipe nails it. With a clever cornstarch trick and a preheated pan, these **crispy roasted sweet potatoes** will steal the show at any meal.
## Why This Recipe Works
Sweet potatoes are a nutritional powerhouse, packed with fiber and vitamin A, but their natural sugars can make them prone to steaming rather than crisping. Here’s the secret:
- **Cornstarch coating**: Absorbs moisture for maximum crunch.
- **Preheated baking sheet**: Jumpstarts caramelization.
- **Smoked paprika**: Adds depth without overpowering.
“The key is letting the potatoes sit in a single layer—no crowding!” says chef Marcus Wareing (*The Guardian*, 2023).
## Step-by-Step Instructions
### 1. Prep Like a Pro
Peel and cut **2 large sweet potatoes** into even ¾-inch cubes. Uniform size ensures even cooking. Toss them in a mixture of **1 tbsp cornstarch**, **1½ tsp kosher salt**, **½ tsp smoked paprika**, and **2½ tbsp olive oil** until fully coated.
### 2. The Hot Pan Trick
While the oven preheats to **450°F**, place a light-colored baking sheet inside for 5 minutes. A hot pan = instant sizzle. Drizzle the remaining **1 tbsp oil** onto the sheet, then spread the potatoes in a single layer.
### 3. Roast to Perfection
Roast for **30–40 minutes**, flipping every 10–15 minutes, until the edges are caramelized. Let them rest for 5 minutes—this crisps them further.
## Serving & Storage Tips
- **Best served immediately**: Crispiness fades fast.
- **Reheat in an air fryer**: 5 minutes at **350°F** revives leftovers.
- **Pairing ideas**: Try with [garlicky yogurt sauce](internal-link) or as a topping for grain bowls.
## The Verdict
These **crispy roasted sweet potatoes** are a game-changer—easy enough for weeknights but impressive for guests. For more veggie-centric recipes, explore our [guide to roasting vegetables](internal-link).
*Citations:*
- *The Guardian*, "How to Roast Vegetables Perfectly" (November 2023)
- USDA National Nutrient Database (2023)