Apiway
← Examples of our work
Case study · AI agent

An AI agent that sets up Instagram automations from a voice message

We built an AI agent that lives in Instagram DMs. Instead of clicking through settings, you send it a voice or text message and it sets up your comment → DM automation for you.

ChannelInstagram Direct
InputVoice and text messages
Built onOfficial Meta API

The task

Comment → DM funnels work: someone comments a keyword under a post or Reel and instantly gets a link, a guide or a discount in DMs. But setting one up means a settings screen full of triggers, keywords, message texts and links. It takes time and is easy to get wrong.

The goal was to remove that screen completely: describe what you want in plain words, and the automation is ready.

What we built

An AI agent inside Instagram DMs at @apiway_official. It understands both voice and text messages, figures out the trigger, the keyword, the message and the link, and creates the automation in your account.

It covers comments on posts and Reels and replies to Stories, so lead magnets and freebies go out automatically.

How it works

Voice messageYou say what you need in Instagram DMs
AI agentUnderstands the request
AutomationTrigger, keyword, DM text and link are set up
Your followersEveryone who comments gets your DM

Under the hood

The real logic behind it. Every branch, every check.

TriggerAIConditionActionOutputStoplive
TriggerVoice messageDM to @apiway_official
TriggerText messageDM to @apiway_official
AISpeech to textvoice is transcribed
AIIntent parserpost · trigger · keyword · DM text · link
ConditionAll details clear?
ActionClarifying questionagent asks back in DMs
ActionCreate automationin your Apiway account
OutputConfirmationsent back in DMs
TriggerCommenton a post or Reel
TriggerStory replywith a keyword
ConditionKeyword match?
StopNo messageleft alone
ConditionBranding off?paid plan or affiliate
OutputDM with your linkclean, no branding
OutputDM with your linkwith Apiway branding

Example conversation

This is what talking to the agent looks like.

Instagram · @apiway_official
▶ 0:12“When someone comments ‘guide’ under my latest Reel, send them my free PDF guide.”
Done. Anyone who comments “guide” under your latest Reel will get a DM with your guide link.
Want me to do the same for replies to your Stories?
Yes, please

Want an AI agent like this for your business?

Sales, support, content or internal agents, built turnkey by our team.