Facebook Ads Data AI Agent
Analyze performance across accounts, campaigns, ad sets, and ads with comprehensive insights. Retrieve account details, ads, ad sets, campaigns, and creatives in one place. Track changes with activity logs and streamline reporting over custom date ranges.
Facebook Ads Data handles repetitive tasks for you automatically. It can do 21 different things for you—just connect to it in one click.
Available Tools
Facebook Ads Data can do 21 different things for you automatically. Here's what it can handle:
list_ad_accounts
List down the ad accounts and their names associated with your Facebook account. CRITICAL: This function MUST automatically fetch **all** pages u...
get_details_of_ad_account
Get details of a specific ad account as per the fields provided Args: act_id: The act ID of the ad account, example: act_1234567890. If om...
get_adaccount_insights
Retrieves performance insights for a specified Facebook ad account. This tool interfaces with the Facebook Graph API's Insights edge to fetch com...
get_campaign_insights
Retrieves performance insights for a specific Facebook ad campaign. Fetches statistics for a given campaign ID, allowing analysis of metrics like...
get_adset_insights
Retrieves performance insights for a specific Facebook ad set. Provides advertising performance statistics for an ad set, allowing for analysis ...
get_ad_insights
Retrieves detailed performance insights for a specific Facebook ad. Fetches performance metrics for an individual ad (ad group), such as impressi...
fetch_pagination_url
Fetch data from a Facebook Graph API pagination URL Use this to get the next/previous page of results from an insights API call. Arg...
get_ad_creative_by_id
Retrieves detailed information about a specific Facebook ad creative. This tool interfaces with the Facebook Graph API to fetch comprehensive det...
get_ad_creatives_by_ad_id
Retrieves the ad creatives associated with a specific Facebook ad. This function accesses the Facebook Graph API to retrieve the creative obj...
get_ad_by_id
Retrieves detailed information about a specific Facebook ad by its ID. This function accesses the Facebook Graph API to retrieve information ...
Configuration Variables
To get Facebook Ads Data working, you'll need to give it access to your accounts. You must provide 1 piece of info. This usually means logging into apps like Gmail, Slack, or other services you want it to use—just like when you connect apps on your phone.
fbToken
Common Questions
What is an AI Agent?
An AI agent is like having a personal assistant who does specific tasks for you. Instead of a general chatbot that just talks, AI agents actually do things—they can check your calendar, send emails, look up information, and handle repetitive work so you don't have to.
What is MCP (Model Context Protocol)?
MCP is simply the way AI agents plug into your apps and services. When you connect something like Facebook Ads Data to Lyra, it lets the AI take actions on your behalf.
How do I use Facebook Ads Data?
Just install it inside Lyra. It only takes a moment. After that, your AI can instantly use Facebook Ads Data—no setup, no technical knowledge required.