Post 3 AI Articles To Website in Under 30 Seconds Using Scripts

With this setup created using Copilot GPT-5 you can turn AI drafts into published Joomla articles automatically with Miniconda, Python, Kivy, cron, and PHP—no coding or website editor fuss. 

You don't even have to log in to the website you're posting to.

Everything was made by telling Copilot GPT-5 (with plenty of fails) to do as requested, and get it right. The Kivy code, python, php, etc. All of it is entirely created with Copilot. I didn't write a single line of code myself. This setup is made for Joomla CMS (hosted on a Linux VPS) which is similiar to Wordpress but better imo. 

Why this particular setup? Because it's free outside domain and VPS expenses. Microsoft Copilot has GPT-5 and is 100% free to use. Plus the information it provides is - seemingly - pretty solid. Might also work just as good with Gemini AI which is Google.

Why only 3 articles per request? To avoid maxed out character usage in a single AI-post response. I had the best experience getting a full set of articles including meta description and keywords with 3, yet you can gamble with more, and especially if you use something like Grok which has an extremely high max character output.

What you do in 30 seconds

Open the desktop app (made in Kivy), click Request button which opens chat.bing.com where you CTRL + V prompt from clipboard (provided by app,) wait for AI to provide output response in JSONL format with 3 articles styled from your prompt (title, content, meta description and keywords,) paste JSONL code provided by AI into the Kivy app, click Post button in the app, and the app uploads it as a JSONL file to the server, and you're done

Example prompt for Copilot provided by Kivy app to clipboard

Once you click Request button in Kivy app, chat.bing.com opens and prompt is automatically added to clipboard:

Smart (GPT-5), produce EXACTLY 3 evergreen travel/culture articles about Norway for viewnorway.no.
Output MUST be a single fenced code block containing EXACTLY 3 lines of JSON (JSONL).
Each line is ONE complete JSON object. Do NOT add blank lines between objects. Do NOT add commentary outside the code block.

Audience: travelers, tourists, and festival-goers seeking timeless information that stays relevant for years.
Evergreen focus only: destinations, phenomena, heritage, and experiences that do not depend on changing logistics, prices, or time-sensitive details.

Allowed themes (choose different ones per article):
- Deep-rooted festivals (Vinjerock, Tysnesfest, Trænafestivalen, Polarjazz, Peer Gynt Festival, Riddu Riđđu)
- Natural phenomena and landscapes (fjords, Northern Lights, midnight sun, glaciers, waterfalls, national parks)
- Arctic culture and experiences (Reindeer encounters, snow hotels)
- Architecture and UNESCO heritage (Bryggen, stave churches, Røros, Urnes)
- Iconic scenic journeys (Hurtigruten coastal voyage, Flåm Railway, Atlantic Road, Lofoten drives)
- Wildlife and nature (puffins, whales, reindeer, musk ox, bird cliffs, mountains)
- Seasonal phenomena (midnight sun, polar night, aurora, autumn colors)

Strict formatting and size limits to prevent truncation:
- Write the `html` field as long-form but compact: 600–800 words max.
- Use ONLY headings (<h2>, <h3>) and paragraphs (<p>) and lists (<ul>/<li>). NO tables, NO images, NO iframes.
- MAX 3 lists per article, each with 3–5 items.
- metaDescription ≤ 160 characters, metaKeywords: 5–8 short terms.
- No external links in `html`.
- Set `link` to https://viewnorway.no.

Each JSON object must have the following fields:
- title
- alias (click‑friendly, derived from the title; lowercase with hyphens)
- link (always https://viewnorway.no)
- imageGender (empty string)
- imageFilename (empty string)
- body (2–3 sentence evergreen summary)
- metaDescription (≤160 chars)
- metaKeywords (array of 5–8 concise evergreen keywords)
- html (full long-form HTML article body, 600–800 words, headings + paragraphs + short lists only)

Quality rules:
- No invented facts. Refer only to real Norwegian places, events, and traditions.
- Avoid logistics (tickets, prices, timetables) and avoid time-sensitive advice.
- Vary topics across the 3 articles; do not repeat themes.

Example JSON object format (structure only, keep yours longer and richer):
{"title":"Concerts in the Clouds: Norway’s Mountain Music Scene Is the Most Epic Thing You’ve Never Heard Of","alias":"concerts-in-the-clouds-norway-mountain-music","link":"https://viewnorway.no","imageGender":"","imageFilename":"","body":"A short summary of the article in 2–3 sentences.","metaDescription":"Meta description in English (≤160 chars).","metaKeywords":["Norway","mountain concerts","festivals","outdoor","music"],"html":"<article><h1>Concerts in the Clouds...</h1><p>Full HTML article body with headings and paragraphs only (no tables). Keep it concise.</p></article>"}

Avoid duplicates. Exclude any articles with the following titles:
Norway’s Secret Sauna Villages: Steam, Stories, and Fjordside Rituals
Norway’s Midnight Markets: Shopping Under the Summer Sun
etc (could just copy/paste all the articles from https://viewnorway.no/only-in-norway here.)

Example output from Copilot to copy/paste back into Kivy app

Single article jsonl line:

{"title":"Peer Gynt Festival: Norway’s Timeless Celebration of Myth and Music","alias":"peer-gynt-festival-norway-myth-music","link":"https://viewnorway.no","imageGender":"","imageFilename":"","body":"The Peer Gynt Festival in Gudbrandsdalen is a cultural cornerstone blending theater, music, and folklore. Rooted in Henrik Ibsen’s play and Norwegian tradition, it offers travelers a timeless immersion into myth and art.","metaDescription":"Discover Norway’s Peer Gynt Festival, a timeless celebration of folklore, theater, and music.","metaKeywords":["Norway","Peer Gynt","festival","folklore","culture","Gudbrandsdalen","Ibsen"],"html":"<article><h2>The Legacy of Peer Gynt</h2><p>The Peer Gynt Festival is held annually in Gudbrandsdalen, deeply inspired by Henrik Ibsen’s famous play. It celebrates the mythical character Peer Gynt, whose adventures reflect themes of identity, nature, and Norwegian folklore. The festival has become a cultural institution, blending theater, music, and storytelling in a way that resonates across generations.</p><h2>A Stage in Nature</h2><p>One of the festival’s most distinctive features is its outdoor performances. The natural landscape of Gudbrandsdalen serves as a dramatic backdrop, with mountains, lakes, and forests enhancing the theatrical experience. This connection to nature underscores the Norwegian tradition of integrating art with the environment.</p><h3>Highlights of the Festival</h3><ul><li>Open-air theater productions of Ibsen’s Peer Gynt</li><li>Concerts featuring Norwegian and international musicians</li><li>Folklore-inspired art exhibitions</li><li>Community gatherings celebrating local heritage</li></ul><h2>Folklore and Identity</h2><p>The festival is more than entertainment; it is a reflection of Norwegian identity. Peer Gynt’s journey symbolizes the tension between individual ambition and communal responsibility, themes that remain relevant today. Visitors experience not only performances but also the cultural values embedded in the stories.</p><h2>Music and Atmosphere</h2><p>Music plays a central role, with compositions by Edvard Grieg often performed to accompany the theatrical works. The combination of Grieg’s melodies and Ibsen’s narrative creates a powerful atmosphere that connects audiences to Norway’s cultural heritage.</p><h3>Why It Endures</h3><ul><li>Deep roots in national literature and music</li><li>Integration of natural landscapes into performances</li><li>Community involvement and pride</li><li>Universal themes of identity and belonging</li></ul><h2>A Timeless Experience</h2><p>For travelers, the Peer Gynt Festival offers a unique opportunity to witness how art, nature, and tradition intertwine. It is not bound by time-sensitive logistics but remains a perennial celebration of Norway’s cultural soul. Whether attending a play by the lake or listening to Grieg’s music under the stars, visitors are immersed in a timeless narrative that continues to inspire.</p></article>"}

How the automation works end to end

Here’s the layman’s view of the full pipeline—think of it like a robot editor that publishes for you in the background.

  • Step 1 — AI writes: You (with the helper / Kivy app) ask Copilot/ChatGPT for 3 articles. The AI returns them in clean, structured JSON where the title, summary, keywords, and full HTML are clearly separated. Copy/paste that JSONL back into the Kivy app and hit the Post button. The JSONL will now be uploaded as a .jsonl file to the server.
  • Step 2 — Drop into inbox: That JSON file is placed into a special “inbox” folder on the server (ie /home/upload/viewnorway/copilotarticles) where new content waits to be posted.
  • Step 3 — Cron (.sh file / bash script starting Conda env & Python script) checks every minute: A server scheduler (cron) runs automatically, looking for new files to process.
  • Step 4 — Python scripts processes: A Python script reads each article, validates the fields, prepares the full HTML, and hands the article off to the publishing step.
  • Step 5 — PHP script publishes to Joomla: A PHP script creates the article on the Joomla website, sets the metadata, prevents duplicates, and saves it live, meaning as Published.
  • Step 6 — Archive: The processed file is moved to an archive so it won’t be posted twice.

Sometimes random idea appear for article

Immediately go to https://chat.bing.com before forgetting (or make a note) and talk back and forth with Copilot about that idea for article. Once established what you want to write, simply tell Copilot:

perfect. tourist / traveler friendly article about that. jsonl example below:

{"title":"Peer Gynt Festival: Norway’s Timeless Celebration of Myth and Music","alias":"peer-gynt-festival-norway-myth-music","link":"https://viewnorway.no","imageGender":"","imageFilename":"","body":"The Peer Gynt Festival in Gudbrandsdalen is a cultural cornerstone blending theater, music, and folklore. Rooted in Henrik Ibsen’s play and Norwegian tradition, it offers travelers a timeless immersion into myth and art.","metaDescription":"Discover Norway’s Peer Gynt Festival, a timeless celebration of folklore, theater, and music.","metaKeywords":["Norway","Peer Gynt","festival","folklore","culture","Gudbrandsdalen","Ibsen"],"html":"<article><h2>The Legacy of Peer Gynt</h2><p>The Peer Gynt Festival is held annually in Gudbrandsdalen, deeply inspired by Henrik Ibsen’s famous play. It celebrates the mythical character Peer Gynt, whose adventures reflect themes of identity, nature, and Norwegian folklore. The festival has become a cultural institution, blending theater, music, and storytelling in a way that resonates across generations.</p><h2>A Stage in Nature</h2><p>One of the festival’s most distinctive features is its outdoor performances. The natural landscape of Gudbrandsdalen serves as a dramatic backdrop, with mountains, lakes, and forests enhancing the theatrical experience. This connection to nature underscores the Norwegian tradition of integrating art with the environment.</p><h3>Highlights of the Festival</h3><ul><li>Open-air theater productions of Ibsen’s Peer Gynt</li><li>Concerts featuring Norwegian and international musicians</li><li>Folklore-inspired art exhibitions</li><li>Community gatherings celebrating local heritage</li></ul><h2>Folklore and Identity</h2><p>The festival is more than entertainment; it is a reflection of Norwegian identity. Peer Gynt’s journey symbolizes the tension between individual ambition and communal responsibility, themes that remain relevant today. Visitors experience not only performances but also the cultural values embedded in the stories.</p><h2>Music and Atmosphere</h2><p>Music plays a central role, with compositions by Edvard Grieg often performed to accompany the theatrical works. The combination of Grieg’s melodies and Ibsen’s narrative creates a powerful atmosphere that connects audiences to Norway’s cultural heritage.</p><h3>Why It Endures</h3><ul><li>Deep roots in national literature and music</li><li>Integration of natural landscapes into performances</li><li>Community involvement and pride</li><li>Universal themes of identity and belonging</li></ul><h2>A Timeless Experience</h2><p>For travelers, the Peer Gynt Festival offers a unique opportunity to witness how art, nature, and tradition intertwine. It is not bound by time-sensitive logistics but remains a perennial celebration of Norway’s cultural soul. Whether attending a play by the lake or listening to Grieg’s music under the stars, visitors are immersed in a timeless narrative that continues to inspire.</p></article>"}

Or 

idea1 article
idea2 article
etc

perfect. write a separate tourist / traveler friendly article about each of those. in batches. jsonl example below:

{"title":"Peer Gynt Festival: Norway’s Timeless Celebration of Myth and Music","alias":"peer-gynt-festival-norway-myth-music","link":"https://viewnorway.no","imageGender":"","imageFilename":"","body":"The Peer Gynt Festival in Gudbrandsdalen is a cultural cornerstone blending theater, music, and folklore. Rooted in Henrik Ibsen’s play and Norwegian tradition, it offers travelers a timeless immersion into myth and art.","metaDescription":"Discover Norway’s Peer Gynt Festival, a timeless celebration of folklore, theater, and music.","metaKeywords":["Norway","Peer Gynt","festival","folklore","culture","Gudbrandsdalen","Ibsen"],"html":"<article><h2>The Legacy of Peer Gynt</h2><p>The Peer Gynt Festival is held annually in Gudbrandsdalen, deeply inspired by Henrik Ibsen’s famous play. It celebrates the mythical character Peer Gynt, whose adventures reflect themes of identity, nature, and Norwegian folklore. The festival has become a cultural institution, blending theater, music, and storytelling in a way that resonates across generations.</p><h2>A Stage in Nature</h2><p>One of the festival’s most distinctive features is its outdoor performances. The natural landscape of Gudbrandsdalen serves as a dramatic backdrop, with mountains, lakes, and forests enhancing the theatrical experience. This connection to nature underscores the Norwegian tradition of integrating art with the environment.</p><h3>Highlights of the Festival</h3><ul><li>Open-air theater productions of Ibsen’s Peer Gynt</li><li>Concerts featuring Norwegian and international musicians</li><li>Folklore-inspired art exhibitions</li><li>Community gatherings celebrating local heritage</li></ul><h2>Folklore and Identity</h2><p>The festival is more than entertainment; it is a reflection of Norwegian identity. Peer Gynt’s journey symbolizes the tension between individual ambition and communal responsibility, themes that remain relevant today. Visitors experience not only performances but also the cultural values embedded in the stories.</p><h2>Music and Atmosphere</h2><p>Music plays a central role, with compositions by Edvard Grieg often performed to accompany the theatrical works. The combination of Grieg’s melodies and Ibsen’s narrative creates a powerful atmosphere that connects audiences to Norway’s cultural heritage.</p><h3>Why It Endures</h3><ul><li>Deep roots in national literature and music</li><li>Integration of natural landscapes into performances</li><li>Community involvement and pride</li><li>Universal themes of identity and belonging</li></ul><h2>A Timeless Experience</h2><p>For travelers, the Peer Gynt Festival offers a unique opportunity to witness how art, nature, and tradition intertwine. It is not bound by time-sensitive logistics but remains a perennial celebration of Norway’s cultural soul. Whether attending a play by the lake or listening to Grieg’s music under the stars, visitors are immersed in a timeless narrative that continues to inspire.</p></article>"}

Copilot provides the output you want.

Then paste the jsonl into the Kivy app and click Post button.

Moments later the article or articles are live on the https://viewnorway.no (Joomla) site. Simple and free. 

Copilot shouldn't be trusted with giving links

Had an idea for evergreen webcam streams showing the beauty of Norway. 90% of the links Copilot provided were outdated/ no longer working.

Not saying that is the case for all links such as hotels etc, but in general, Copilot should not be trusted with giving links in an article, unless you feel like wasting time quality checking/oftenly correcting each one. It provided links to real websites, even real pages, but on that page there were no actual webcam streams to be found.

bitcoin

 

eth

 

HEX