<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mattia Maggioni</title>
    <description>The latest articles on DEV Community by Mattia Maggioni (@mattiamaggioni).</description>
    <link>https://dev.to/mattiamaggioni</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4208478%2F68d0364b-bef2-4dce-adb2-287d22a9c0f8.jpg</url>
      <title>DEV Community: Mattia Maggioni</title>
      <link>https://dev.to/mattiamaggioni</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mattiamaggioni"/>
    <language>en</language>
    <item>
      <title>Our app runs its own Instagram accounts: how the autopilot works, and week 1's real numbers</title>
      <dc:creator>Mattia Maggioni</dc:creator>
      <pubDate>Mon, 26 Oct 2026 10:56:17 +0000</pubDate>
      <link>https://dev.to/mattiamaggioni/our-app-runs-its-own-instagram-accounts-how-the-autopilot-works-and-week-1s-real-numbers-264d</link>
      <guid>https://dev.to/mattiamaggioni/our-app-runs-its-own-instagram-accounts-how-the-autopilot-works-and-week-1s-real-numbers-264d</guid>
      <description>&lt;p&gt;I'm building an app that creates, edits and posts short videos on its own. To test it in public, it runs two Instagram accounts by itself: one in English since October 21 and one in Italian since October 22. Nobody edits the videos; when something comes out wrong we fix the app. Here's how the autopilot works, and what week 1 looked like.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the autopilot works
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. A plan per calendar week.&lt;/strong&gt; Every Monday, in the audience's time zone, a worker plans Monday to Sunday: the slots (at the audience's best times, up to 2 a day), a role for each slot (core format, sales or test, with fixed shares counted over the last 4 weeks), the format for each slot, a hook and an ending, and an idea. Switch it on mid-week and the first plan only runs to Sunday, so the next one starts with a full week of data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Formats are picked with Thompson sampling.&lt;/strong&gt; For each core slot it draws a random number around each format's score, wider when the format has little data, and the highest wins. No format gets more than 60% of the core slots over 4 weeks. In week 1 there's no data, so every format is equal and the plan is mostly tests.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Videos are made about 30 hours before their slot.&lt;/strong&gt; A Postgres cron job (pg_cron) checks every 10 minutes for approved slots going out within 30 hours and queues the video.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Making one video.&lt;/strong&gt; A small language model writes the script, then fills a JSON scene file that follows the style's schema. The model never writes code. A fact-check pass reads the script first. A text-to-speech voice reads the lines and returns word timings, which set each scene's length and the captions. Remotion renders 1080×1920 at 30 fps inside a container that only runs when there's work. The language-model parts are cheap: title and caption about 0.1 cents per video, the fact-check about 1 cent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Learning at day 7.&lt;/strong&gt; Each video gets a score from reach, watch time and actions. Each number is divided by the median of the account's recent mature videos on the same network, in log scale, so a 300-view account and a 300,000-view account both have a "×1". Small numbers are smoothed toward the account's usual. Hits count at most ×3 and flops at least ×0.33 for their format. It needs at least 5 scored videos before it learns anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  Week 1: the cold start, in numbers
&lt;/h2&gt;

&lt;p&gt;Read on Monday, October 26. Only videos made by HypeFox; one demo video we posted ourselves on each account is left out.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;English account (Oct 21–25)&lt;/th&gt;
&lt;th&gt;Italian account (Oct 22–25)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Videos posted&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Views&lt;/td&gt;
&lt;td&gt;1,074 (49–175 per video)&lt;/td&gt;
&lt;td&gt;1,019 (120–232)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Swiped away in the first 3 s (avg)&lt;/td&gt;
&lt;td&gt;57%&lt;/td&gt;
&lt;td&gt;58%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Avg watch time&lt;/td&gt;
&lt;td&gt;6.1 s of ~34 s&lt;/td&gt;
&lt;td&gt;6.3 s of ~36 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Likes / saves / comments / shares&lt;/td&gt;
&lt;td&gt;3 / 4 / 2 / 0&lt;/td&gt;
&lt;td&gt;4 / 1 / 0 / 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Followers&lt;/td&gt;
&lt;td&gt;2 → 5&lt;/td&gt;
&lt;td&gt;1 → 4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Signups from the account&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Point 5 is why week 1 can't be smart: no video is 7 days old yet, so there's nothing to learn from. The Monday report says it plainly: "no numbers yet". The first videos turn 7 days old on Wednesday, and next Monday's plan will be the first one built on the account's own numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  What surprised me
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The best English video, made by the AI, was titled "An AI tool can't run your account by itself" (175 views, 44% swiped away, the best hold on that account).&lt;/li&gt;
&lt;li&gt;The polished demo we made ourselves was the most skipped video of the week: 99% swiped away in 3 seconds on the English account. The AI's plain explainers kept about 43 out of 100 viewers past 3 seconds.&lt;/li&gt;
&lt;li&gt;The two sales videos ("DM me PLAN") held worse than average and nobody sent the word.&lt;/li&gt;
&lt;li&gt;14 of 16 videos landed between 116 and 232 views: a new account's test audience, and nothing broke out yet.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What we changed (the app, never a video)
&lt;/h2&gt;

&lt;p&gt;We rebuilt the main style on day 1 (drawn places, moving icons, a moving camera), added background music, and picked new script instructions with blind tests judged by models that didn't know which version they were reading.&lt;/p&gt;

&lt;h2&gt;
  
  
  Next
&lt;/h2&gt;

&lt;p&gt;Week 2 is running: 14 videos per account, still without lessons. I'll post the numbers every Monday, including the first week the learning loop actually kicks in.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>buildinpublic</category>
      <category>showdev</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
