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.

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.

4
Grant Ad Permissions
Ensure you grant all requested permissions for managing ad accounts and viewing stats, then click Save.

5
Complete Connection
Once the connection is confirmed, click Got it to close the window and complete the integration.

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.

2
Select audience source
In the source selection window, choose your data source (e.g., Facebook Page).

3
Configure and name audience
Select your Facebook Page, set your desired interaction criteria, name your audience, and click Create Audience to complete.



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:
- Click Actions from the block element menu.
- In the actions panel, select the Messenger category.
- Click Facebook Custom Audience to add it to your flow.

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.
