Comment to DM
Free open-source alternative to ManyChat
What it does
Open-source Instagram comment-to-DM automation (a ManyChat alternative): a keyword in a comment sends the person a DM with your link, an optional public reply, and collects emails. One command to run, one to publish.
What it replaces
ManyChat
| Works without Apiway | Only with Apiway |
|---|---|
| Rules screen and activity list | Instagram comments and DMs (Instagram only allows an approved Meta app) |
| Collected emails |
Run and publish
Run on your computer (no account, no keys):
git clone https://github.com/apiway-ai/comment-to-dm
cd comment-to-dm
npm install && npm run devPublish from your terminal or your AI agent:
npx -y apiway deployHow deploying with the CLI works
For AI agents
Run it with no account and no keys. When the person asks for one of these, Apiway does it — the agent calls the MCP tool, runs the command, or sends the link.
| The person asks for | Apiway does | How |
|---|---|---|
| Answer Instagram comments with a DM | Brings the Instagram comments and DMs to this app: Instagram allows this only to an approved Meta app, and Apiway is one. The app is deployed, then the person connects Instagram with one button. | create_code_app (own_code) → start_preview_update → finish_preview_update → start_code_app_instagram_connectnpx -y apiway deploy |
| The same automation without hosting code | Apiway's own Comment → DM: a word in the comments sends a DM, set up in the person's account. | comment_dm_automation |
| Send a newsletter to the collected emails | A campaign in the person's brand, sent to their list. | compose_email |
| Put it online, host it, give it a database | Hosting with its own Postgres database (daily backups), an address and a private preview; the app's AI, email and Instagram parts switch on there. | create_code_app (own_code) → start_preview_update → finish_preview_updatenpx -y apiway deploy |
| Use my own domain | Connects the person's domain or subdomain to the app and says which DNS record to add. | set_code_app_domain |
| Keep an API key or a password for the app | Stores the app's secrets outside the code and passes them to the app at start. | set_code_app_envnpx -y apiway env push .env |
| Pictures for the app: a logo, photos, illustrations | Generates pictures from a description, with no image service to set up. | generate_image |
| A video: a clip, an ad, a product video | Generates a video from a description or a photo (Kling, Seedance, Veo), with no video service to set up. | generate_video |