How to Build a Facebook Messenger Bot for Business
If you’ve never built a Messenger bot before, you’re in exactly the right spot. In this step-by-step guide, I’ll show you how to set up a fully functional AI agent for your business’s Facebook Messenger DMs, even if you have zero technical experience.
My name is Alex, co-founder of Parnidia, an AI development agency. We’ve launched 15+ chatbots for all kinds of businesses, and today, I’ll show you the fastest way to build your own Messenger automation—using simple, no-code tools.
What you’ll need (all free to start):
- Voiceflow account (it’s free!)
- Convocore (free tier is enough)
- Facebook Business Manager
- An active Facebook business page
Why Voiceflow?
Voiceflow lets you easily build all kinds of conversational agents—no coding required. It’s extremely flexible, has a supportive community, and is perfect for both beginners and pros who want to quickly launch chatbots for any business need.
Why Convocore?
Convocore makes it simple to connect your Voiceflow agent directly to your Facebook page. It handles the integration, so your AI assistant can start chatting with Messenger users instantly.
By the end, you’ll have a working Messenger bot ready to handle real customer questions—and you’ll understand each step along the way. No coding, no technical jargon—just real automation, fast.
Let’s get started.
Step-by-step build: Facebook Messenger bot
Connecting Voiceflow to Facebook business page
In this practical guide, we’ll create a fitness coach agent that educates users about a coaching program and helps generate sales—all inside Facebook Messenger. The process is simple, actionable, and focused on real business outcomes. If you want to stop wasting time on manual DMs and start turning Messenger into an automated sales and support channel, this is exactly what you’re looking for.
Let’s start from the fun part, seeing our first automated message on our business page. First we need to create a new Voiceflow project that we’ll connect to a Facebook business page. Give it a name and select “Basic template” - we’ll customize the agent workflow later. For learning how to automate our first message, a basic template is enough (Image 1).

After we’ve created the project, we’ll need to publish it, for us to be able to connect it with Convocore. At the top right corner of your Voiceflow canvas, you’ll see a big green button “Publish”, click it, and click “Publish” again (Image 2).

Next, go to Convocore and create a new account if you don’t have one. You’ll have to create an agen with a basic template, that we’ll connect to Voiceflow and Facebook messenger (Image 3).

With new agent created:
- Go to “Settings” tab
- Click on Integrations
- Enable Voiceflow integration (Image 4)
- And go back to “Widget” tab

Now, back in the “Widget” tab, you’ll see a section where you need to enter Voiceflow project ID and API key (Image 5).

You can find it by going to Voiceflow and navigating to Interface. In the Widget tab, you’ll see a code snippet with your project ID (Image 6), and an API Keys tab where you can get your API key (Image 7).


Copy and paste both values to Convocore and hit publish. Important - don’t forget to publish, or you’ll have to repeat the process.
{{blue-cta}}
We’re almost done with the integration. The final step is to connect Convocore with Facebook Messenger. Go to the Channels tab and click “Connect” next to Messenger (Image 8). A popup will appear—simply click “Continue with Meta.” You’ll then need to log in to your business Facebook account. This direct login allows the Convocore Meta app to connect to your Facebook page, so you can grant access to automate your business messages.

Here are the steps to finalize the integration with your your Facebook page:
- Select the Facebook pages you want to automate (you can use the same agent for multiple pages).
- Select the business account you will grant the app access to.
- If you want to connect to Instagram as well, you can do so here. If not, or if you don’t have an Instagram account, just continue with the default option.
- Finally, confirm the integration by clicking “Save.”
In the end, you should see the facebook assets that the app has access to. If you selected one business, you’ll see one card, you selected more than one, you’ll see multiple cards. Press “continue” to finish the integration with your facebook business account (Image 9).

That’s it—congratulations! Messenger integration is now live. If everything was set up correctly, the Messenger card should be glowing green (Image 10). Try it out by sending a message to your business page.
Note: By default, each message sent using the Convocore app is treated as a separate conversation with no history. This means the bot won’t remember previous messages. To fix this, enable Smart Initialization (Image 10) at the bottom of the Channels tab and click “Publish.”

I also highly recommend reading the Meta developer docs—they mention that some countries require you to disclose to users that they are interacting with a bot. It’s a very short read, you’ll find the information under the heading “Informing Users About Your Automated Experience” in: https://developers.facebook.com/docs/messenger-platform/send-messages/
Building conversation flow in Voiceflow
Thanks to Convocore, integrating Voiceflow with Facebook Messenger was a breeze. We can now focus on building out our agent using.
In this next step, we’ll focus on prompt engineering basics—how to write clear, effective instructions for your AI agent so it can deliver real value to users.
I’ll be honest - at the beginning of my AI development journey, I saw prompt engineering as something that people say to sound smart. But after spending more than 2 years working with Large Language models, a good written prompt and a correct model picked for your use case can be like night and day. Do not overlook this, spend time learning about best practices in prompt engineering.
If you want to dive deeper and learn how to prompt your agents or how to structure your prompts when working with LLMs, I recommend reading OpenAI's cookbook - https://cookbook.openai.com/examples/gpt4-1_prompting_guide
Prompting AI agent
Here are essentials for any AI Agent prompt:
- Clear role & mission - "You're a fitness coach for FitLife Coaching. Help clients achieve their fitness goals, answer training and nutrition questions, and capture leads for personal training sessions."
- Tone & response lenght - Give it a voice that matches your brand. Try: "Chat like an encouraging fitness coach. Use motivational, energetic, and supportive language while being professional. Keep answers concise and actionable (1–3 sentences unless more detail is needed)."
- Available tools - List what your agent can actually do: "Search our fitness knowledge base and capture leads for coaching sessions."
- Safety rails - Keep it on track with: "Only recommend exercises and programs from our knowledge base. Never provide medical advice—refer to healthcare professionals when needed. If asked about competitors, redirect politely. Never guess—if unsure or didn't find information in the knowledge base, say so."
The more you think about likely user questions and situations, the better you can tailor your instructions for the AI. For example, instructions for a Messenger bot should prioritize brevity and fast replies, while a website chat might allow for longer answers or richer formatting. Each scenario might require its own tweaks to make sure the AI gives spot-on answers every time.
So before finalizing your prompt, spend a bit of time thinking through the main scenarios for your business. A little extra effort here makes your agent much more effective—and means fewer headaches down the line.
You can review your agent prompt by clicking on the first block in your Voiceflow canvas and clicking “Edit agent” (Image 11).

In our example, we’re using the system prompt as our main knowledge base. This works perfectly if you only offer a few coaching programs or services—just add your key selling points, common questions, and typical objections right into the prompt.
If your business has a lot more information, products, or handles a wide range of questions, you’ll want to set up a dedicated knowledge base instead. For now, this simple approach will get you started fast.
If you want to learn how to properly set up a scalable AI knowledge base, check out how to build an AI insurance agent.
Here is how my final prompt looks like:
Note: Since we're using a social media channel for our interactions, users don't usually expect answers within seconds. This allows us to use reasoning models (if you're on a paid tier of Voiceflow), which are typically smarter and less expensive than fast models like GPT-4.1 or Sonnet. You can review your options in prompt settings, after opening your agent block (Image 12).

After updating your prompt settings, you should publish your Voiceflow agent once again for changes to appear.
{{blue-cta}}
Conclusion
Now that your Facebook Messenger bot is up and running and the AI agent prompt is finished and published, try asking it a few questions—see how it responds based on our prompt and setup. Here are some examples from the agent we built in this guide (Image 13).

Take a minute to test it out—ask a few sample questions and see how the agent responds based on the prompts and setup you just created.
Congrats, you have successfully built out your Facebook bot that can answer questions 24/7.
You can download the Voiceflow template here.
Want to take your Messenger bot further?
If you’re ready to scale beyond simple Q\&A, explore our step-by-step blogs on more advanced topics:
- Building an FAQ knowledge base (using RAG): https://www.voiceflow.com/blog/ai-insurance-agency
- Custom integrations and lead capture: https://www.voiceflow.com/blog/ai-travel-agency
These guides show you how to set up Retrieval-Augmented Generation (RAG), connect custom data, and integrate business features like lead capture—so your bot becomes a true business tool, not just a Q\&A widget.
Need a working Facebook Messenger solution, fast?
If you want a Messenger bot built for your business (with all the tech handled for you), book a call with us - https://www.parnidia.com, We’ll develop and launch your solution—so you can focus on results, not code.
Happy building!

Start building AI Agents
Want to explore how Voiceflow can be a valuable resource for you? Let's talk.
