Skip to main content
Facebook Custom Audience is a tool that allows you to target potential customers by syncing contact information from your chatbot to Facebook Ads Manager. You can use this feature to run remarketing campaigns targeting users who have interacted with your chatbot, or exclude existing buyers to optimize your ad spend.

Connect Facebook Ads with ChatbotX

Before you can add users to custom audiences, you must connect your Facebook Ads account and grant permissions to ChatbotX.
1

Go to Integration Settings

From the left sidebar, click Settings > Select the Integrations tab from the top menu.
2

Connect Facebook Ads

Locate Facebook Ads in the list of integrations and click Connect.
Facebook Ads Integration Connect
3

Log in to Facebook

A login window will open. Click Continue as… to log in using the personal Facebook account that manages your ad accounts.
Facebook Ads Oauth Continue
4

Grant Ad Permissions

Ensure you grant all requested permissions for managing ad accounts and viewing stats, then click Save.
Facebook Ads Oauth Permissions
5

Complete Connection

Once the connection is confirmed, click Got it to close the window and complete the integration.
Facebook Ads Oauth Connected

Create a Custom Audience on Facebook

To allow ChatbotX to sync users to the correct list, you need to create a custom audience in Facebook Ads Manager first.
1

Open Audiences page

Open Facebook Ads Manager, navigate to the Audiences section, then click Create Audience and select Custom Audience.
Facebook Ads Create Custom Audience
2

Select audience source

In the source selection window, choose your data source (e.g., Facebook Page).
Facebook Ads Custom Audience Source
3

Configure and name audience

Select your Facebook Page, set your desired interaction criteria, name your audience, and click Create Audience to complete.
Facebook Ads Custom Audience Setup Step1
Facebook Ads Custom Audience Setup Step2

Use Facebook Custom Audience Action in Flow Builder

Once connected, you can build automation flows to add or remove contacts from custom audiences based on their behavior in the chat.
1

Open Flow Builder

From the left sidebar, click Flows and open the flow you want to edit (or click + Create Flow).
2

Add Facebook Custom Audience Action

In the message block editor, perform the following steps:
  1. Click Actions from the block element menu.
  2. In the actions panel, select the Messenger category.
  3. Click Facebook Custom Audience to add it to your flow.
Facebook Custom Audience Flow Action
3

Configure Action settings

In the action configuration panel, configure the following:
  • Ad Account: Select your connected ad account.
  • Action: Select Add to Custom Audience or Remove from Custom Audience.
  • Custom Audience: Select the target custom audience you created on Facebook.
Facebook Custom Audience Action Config