Instagram AI agent trained on your business
An Instagram AI agent trained on your business answers DMs from your instructions and your own material, such as a price list, a FAQ or your site's pages, rather than general knowledge. It is not retrained: the model looks up that material on each answer. easyCoexistence builds one from Claude or ChatGPT with create_agent and add_agent_knowledge, runs it on your own AI key, and puts it on your DMs.
Knowledge an easyCoexistence agent reads whole on each answer; past that, it searches for the parts that fit the question.
Largest file an agent's knowledge takes: PDF, Word, Excel, PowerPoint, text or CSV, read once when added.
Anthropic bills Claude API use apart from paid Claude plans; Max, Ultra and Team include monthly API credits.
OpenAI runs separate billing systems for ChatGPT and for its API platform.
Where the law requires it, automated chats must say so at the start, after a long pause, and when a person hands back.
Instagram's standard window for answering a DM, counted from the person's latest message.
What does trained on your business mean?
Instructions and knowledge, not a retrained model. The instructions, up to 20,000 characters, say who the agent is, what the business sells, how to talk, what to do and never do, and when to hand a chat to a person. The knowledge holds the facts: up to 24,000 characters are read whole on each answer, and past that the agent searches its knowledge for the parts that fit, so clear titles help. Its built-in rules tell it never to invent prices, stock, dates, links or policies missing from its material, and to say it is the business's automated assistant when asked. It can still be wrong, so test it before it answers customers.
What can the agent learn from?
Up to 600,000 characters of knowledge per agent, from three kinds of source, plus files it can send:
- Text you paste, such as questions and answers, prices or policies, up to 200,000 characters per item.
- A public page of your site, read once: add it again to refresh it.
- Files uploaded on the agent's page: PDF, Word, Excel, PowerPoint, text or CSV, up to 20 MB each; a scan or a picture is read by the agent's own model, on your key.
- Pictures and PDFs to send, such as a menu, each with a note on when it fits; the agent sends one in a DM when the question matches.
Which tools does the agent have?
Besides answering, it can act, within the limits you set. It makes up to 5 tool calls per answer by default, from 1 to 10:
- Save to contact fields, on by default: keeps an email, an order number or a preference on the person.
- Tags, only from the list you give, so a customer can never tag themselves.
- Hand to a person, on by default: pauses the bot on the chat, for 24 hours unless you change it, and emails you.
- Automations it can start, up to 10, each with a sentence saying when, such as the customer confirms an order.
- Custom tools, up to 10 calls to your own API, such as checking an order; header values are saved encrypted and never shown again.
How do you build the agent from Claude or ChatGPT?
Save your AI key in the dashboard first, under AI keys: no tool accepts a key through the chat. Then describe the business to your AI. It calls create_agent with the name, instructions, provider and model, add_agent_knowledge with text or a public link, and test_agent with sample DMs, which sends nothing and saves nothing. Last, it puts the agent on the account: list_social_accounts, then create_automation on the Instagram channel_id with a dm_received trigger and a single agent step. From then on the automation answers, not the chat.
You: Create an agent for Bloom Café that answers our Instagram DMs.
Use our menu at bloomcafe.example/menu and hand complaints to me.
→ create_agent {
"name": "Bloom Café assistant",
"instructions": "You are the assistant of Bloom Café, a coffee shop in São Paulo. Answer briefly, in the customer's language. Hand complaints to a person.",
"provider": "anthropic",
"model": "<your model id>",
"tools": { "fields": true, "handoff": true, "tag_list": ["lead", "complaint"] }
}
→ add_agent_knowledge { "agent_id": "…", "url": "https://bloomcafe.example/menu" }
→ test_agent { "agent_id": "…", "messages": [{ "role": "user", "content": "Do you have oat milk?" }] }
→ list_social_accounts
→ create_automation {
"connection_id": "…Instagram channel_id…",
"name": "Agent on Instagram DMs",
"trigger": { "type": "dm_received", "match": "any" },
"steps": [{ "type": "agent", "agent_id": "…" }]
}How does it behave in Instagram DMs?
Within Meta's rules, plus a few of its own:
- It answers people who wrote first, within 24 hours of their latest DM, once the account allows access to messages.
- It waits 4 seconds by default, at most 10 on Instagram, so several DMs in a row get one answer, then has 20 seconds to reply.
- Its first message to a person, and its first after a day of silence, says it is the business's automated assistant; that setting is on by default.
- It reads the last 20 messages by default, up to 40, and looks at pictures and PDFs on models that read them.
- It goes quiet on a chat for 4 hours by default after you reply from the Instagram app, and answers at most 10 times per chat per hour by default.
- It answers DMs only: comments have their own automations and rules.
What does it cost to run?
Your AI provider bills the tokens on your own key, and easyCoexistence never charges for AI or marks it up. A chat plan does not cover it: Anthropic bills Claude API use separately from paid Claude plans, though Max, Ultra and Team include monthly API credits, and OpenAI keeps ChatGPT and API billing apart. Each answer sends the instructions, the knowledge or the parts found, and the recent messages, and stops at 800 tokens by default. Now and then the agent also rewrites its notes on a person, which costs a little more.
Where does an agent not fit?
When the answers never change: Meta Business Suite's free Inbox automations include Frequently asked questions and Instant reply, which need no AI key. When you need to reach people who have not written: Instagram's API only answers people who messaged first, apart from one private reply to a comment, so no agent can open a DM. When you already run an agent of your own: set_social_webhook_destination sends it the DMs, signed, and it answers with send_social_dm within 24 hours of the person's message. And when you expect Claude or ChatGPT to type the answers in a chat: they set the agent up, but the agent answers on its own, on easyCoexistence, with no chat open.
How to set it up
- Save your AI keyIn Automations, click AI keys, paste an Anthropic, OpenAI or OpenRouter key and click Test and save.
- Create the agentIn Agents, click New agent, pick a starting point such as Answer questions or Qualify leads, type the business name and what it sells, and click Create agent.
- Add its knowledgeOn the Knowledge tab, upload a file, add a page of your site or paste text, and give each item a clear title.
- Test itOn the Test tab, write as a customer would; nothing is sent or saved, but custom tools really call your API.
- Put it on your DMsClick Use it on a connection, pick your Instagram account in the trigger, keep the Agent answers step, and save it switched on.
Common mistakes
- Pasting the AI key into Claude or ChatGPT. No tool accepts a key: save it in the dashboard under AI keys, where it is stored encrypted and never shown again.
- A custom tool that looks orders up by number alone. Any customer can make the agent call it with any value, so it answers whoever guesses a number; ask for a second detail.
- Updating your site and expecting the agent to know. A page is read once when added, so add it again after you change it.
- Turning off Say it is an automated assistant without saying it in your own first message. Meta reminds bots serving California or Germany that the law there can require it.
easyCoexistence builds an AI agent from your instructions, files and pages, runs it on your own Anthropic, OpenAI or OpenRouter key, and puts it on your Instagram DMs with an automation, with tools to save details, tag people, hand chats to you and call your own API. Claude or ChatGPT can build and test it through the connector. US$ 9 to US$ 0.75 per connection per month, falling as you add connections, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook, Google Business Profile and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Can the same agent answer on WhatsApp and Messenger?
Yes. An agent belongs to your easyCoexistence account, so automations on a WhatsApp Business number through Coexistence or on a Facebook Page can use it too. easyCoexistence has no TikTok DMs, so no agent answers there.
Can it understand voice messages?
Yes, with an OpenAI or OpenRouter key saved: a voice DM is written out, the agent answers what was said, and the recording itself is not kept. With only an Anthropic key, it asks the person to type instead.
Which Claude or ChatGPT plan do I need to build it?
Claude's custom connectors work on Free, Pro, Max, Ultra, Team and Enterprise plans, with one connector on Free. ChatGPT allows custom MCP servers with write actions on Business, Enterprise and Edu, on the web; Pro is read and fetch only. Or build the agent in the dashboard with no AI plan.
Which model should it use?
Any model your provider offers on your key; a mid-size model balances quality and cost for answering customers. To read pictures customers send, pick a model that reads images, or the agent answers from the text alone.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on