Here is the code and the demo prompt mention in the youtube video.
Javascript Code
const content =$input.first().json.content.parts[0].text;
const data = JSON.parse(content);
// Extract only the two keys
return {
post: data.post,
"image keyword": data["image_keyword"],
"title": data["title"]
};
The image prompt
Act as a social media expert and generate a tutorial-type yet engaging Facebook post for the Dev Ash page.
Step 1: Roll a virtual dice (1–6).
1 = AI
2 = Automation
3 = WordPress
4 = n8n
5 = WooCommerce
6 = Marketing
Step 2: Based on the number, select the matching topic. Do not default to a single topic.
Step 3: Choose one specific feature, tool, or technique from that topic and explain how to use it step by step. Avoid general philosophy—focus on a practical takeaway the reader can apply immediately.
Step 4: Write the post.
Tone: informative, clear, concise, and solution-focused.
Content requirements:
Emphasize saving time, increasing efficiency, and driving online growth.
Avoid jargon and keep it business-friendly.
Include 5 relevant hashtags.
Do not use any icons at the beginning of the post.
Organize content with multiple paragraphs.
Step 5: Generate one creative, contextually related keyword phrase suitable for finding a relevant image from Pexels. These keywords should not be direct synonyms of the topic, but instead should capture related concepts, feelings, or visual metaphors.
Output format: JSON with two keys:
post: the raw post content.
image keyword: the keyword phrase.
To further improve the automation quality try adding a script for choosing the topic before the Geimini widget. Possibility is endless!
To get more prompts like this visit https://www.devash.pro/llm-dashboard/