<?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: وحيد الفار</title>
    <description>The latest articles on DEV Community by وحيد الفار (@waheedelfar).</description>
    <link>https://dev.to/waheedelfar</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%2F4270537%2Ff4dcabe4-427c-4684-853d-9714c972e321.jpg</url>
      <title>DEV Community: وحيد الفار</title>
      <link>https://dev.to/waheedelfar</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/waheedelfar"/>
    <language>en</language>
    <item>
      <title>I replaced ManyChat with a free tool I built myself (open source)</title>
      <dc:creator>وحيد الفار</dc:creator>
      <pubDate>Sat, 28 Nov 2026 10:20:17 +0000</pubDate>
      <link>https://dev.to/waheedelfar/i-replaced-manychat-with-a-free-tool-i-built-myself-open-source-2mil</link>
      <guid>https://dev.to/waheedelfar/i-replaced-manychat-with-a-free-tool-i-built-myself-open-source-2mil</guid>
      <description>&lt;p&gt;I run a small digital bookstore from Egypt. Every single day, people comment "بكام؟" (how much?) under my Facebook and Instagram posts — and every reply I miss is a sale I lose.&lt;/p&gt;

&lt;p&gt;The famous tools for this, like ManyChat, work fine. But they charge in dollars, every month, while I earn in Egyptian pounds. So I built my own tool instead — and made it free and open source for anyone in the same situation:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;ORVNZA Auto DM&lt;/strong&gt; — &lt;a href="https://github.com/wahedelfar/orvnza-auto-dm" rel="noopener noreferrer"&gt;https://github.com/wahedelfar/orvnza-auto-dm&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How my tool works
&lt;/h2&gt;

&lt;p&gt;Every 5 minutes it checks the comments on my latest Instagram reels and Facebook posts, and compares them with keyword rules I keep in a &lt;strong&gt;Google Sheet&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;keywords&lt;/th&gt;
&lt;th&gt;dm_message&lt;/th&gt;
&lt;th&gt;active&lt;/th&gt;
&lt;th&gt;media_id&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;price, بكام&lt;/td&gt;
&lt;td&gt;Your message + link&lt;/td&gt;
&lt;td&gt;YES&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;On Instagram, a match gets a &lt;strong&gt;private DM&lt;/strong&gt; — as a button card when the message has a link (bare links get filtered as spam much faster), plus a short public reply saying "check your inbox".&lt;/li&gt;
&lt;li&gt;On Facebook, the same message goes out as a &lt;strong&gt;public reply&lt;/strong&gt;. There is a reason for that — below.&lt;/li&gt;
&lt;li&gt;No keyword match? The comment goes to an AI (Groq) that knows my real catalog — book titles, page counts, and the actual price in each store. It answers in the commenter's language. And it is under strict orders: never invent a price, never invent a discount, and stay completely silent on anything off-topic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The part I like most: to change the bot's behavior, I edit a row in the spreadsheet from my phone. No dashboard, no redeploy.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bug that cost me an evening — and wasn't a bug
&lt;/h2&gt;

&lt;p&gt;Facebook private replies (&lt;code&gt;POST /{comment-id}/private_replies&lt;/code&gt;) kept failing on me with error &lt;code&gt;100 / subcode 33&lt;/code&gt; — "object does not exist or lacks permissions". The strange part: the &lt;em&gt;same&lt;/em&gt; Page token could read comments, post public replies, and subscribe my app to the Page's feed. I tried every ID format I could think of.&lt;/p&gt;

&lt;p&gt;The answer: &lt;strong&gt;private replies are locked behind Advanced Access for &lt;code&gt;pages_messaging&lt;/code&gt;&lt;/strong&gt;, and getting that today means business verification plus registering as a "Tech Provider". Standard Access can read and reply publicly — it just cannot send the private reply. So my tool replies publicly on Facebook by design. For a bookstore, that honestly works out: the next reader sees the answer too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Safety rules, so Meta doesn't ban me
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Max &lt;strong&gt;5 sends per run&lt;/strong&gt;, &lt;strong&gt;60 per hour&lt;/strong&gt;, per platform&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;15-minute cooldown&lt;/strong&gt; the moment Meta returns a rate-limit error (#4/#17/#32/#613)&lt;/li&gt;
&lt;li&gt;It remembers the last &lt;strong&gt;3,000 processed comment IDs&lt;/strong&gt;, and never replies to the same person twice on the same post&lt;/li&gt;
&lt;li&gt;It skips comments I already answered myself&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it runs on
&lt;/h2&gt;

&lt;p&gt;Vercel Functions + Blob for state, woken up every 5 minutes by a free cron-job.org schedule (Vercel's own free cron only runs once a day, so I ring the bell from outside). The same repo also carries a Netlify port — I moved hosts mid-project and the engine didn't care, because only the small state adapter is host-specific. Meta Graph API v21, Google Sheets for rules, Groq for the AI answers. Everything on free tiers.&lt;/p&gt;

&lt;p&gt;Setup is: import the repo, paste the env vars, add one secret — the README (Arabic first, English summary included) explains step by step how I created the Meta app and the system-user token that never expires.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I open-sourced it
&lt;/h2&gt;

&lt;p&gt;I know many small sellers who pay for tools in dollars and earn in local currency, like me. If this saves even one of them a monthly subscription, publishing it was worth it.&lt;/p&gt;

&lt;p&gt;If you try it, issues and PRs are welcome — and a ⭐ on the repo helps other small sellers find it:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/wahedelfar/orvnza-auto-dm" rel="noopener noreferrer"&gt;https://github.com/wahedelfar/orvnza-auto-dm&lt;/a&gt;&lt;/p&gt;

</description>
      <category>serverless</category>
      <category>javascript</category>
      <category>opensource</category>
      <category>automation</category>
    </item>
  </channel>
</rss>
