What you can ask AfterLib
Connect AfterLib to your AI assistant. Then ask in your own words. Connect your assistant.
Examples
- Find ads by product, brand, words, country or format. “Find 5 active ads for posture correctors in the US, best Performance first.”
- Find advertisers (Meta Pages) and their ads. “Which pages run the most active ads for collagen powder? Show their best ads.”
- Give the AfterLib link of an ad, a Meta Page or a collection. “Give me the AfterLib links of these ads.”
- Save ads and Meta Pages to a collection, or make a new collection. “Save the 3 best ones to a new collection called "Posture hooks".”
- Clean up a collection. “Remove the ads that are no longer active from my collection "Posture hooks".”
- Share a collection with a link. “Share "Posture hooks" with my designer. She has no AfterLib account.”
- Get the images and videos of an ad. “Give me the video of this ad so I can download it.”
- See how an ad or a Meta Page changed over time. “How did the EU reach of this ad change in the last 30 days?”
- Use saved searches (presets). “Run my saved search "UK skincare" and show the top 10 ads.”
- Check the plan and the credits left. “How many AfterLib credits do I have left?”
Ask “What can you do with AfterLib?” to see this list in your assistant.
Links
- Each ad, Meta Page, collection and preset in an answer has appUrl: the link that opens it in AfterLib.
- Ask for the AfterLib link, and the assistant gives appUrl. It does not need the web or a copy by hand.
- adLibraryUrl and pageUrl open Meta, not AfterLib.
Collections from chat
- list_collections gives the id of each collection. Use it to find a collection by its name.
- create_collection makes a new collection. add_ads_to_collection and add_pages_to_collection add up to 50 items in one call.
- remove_ad_from_collection and remove_page_from_collection remove one item and give an undo.
- publish_collection asks the owner to approve a public link in AfterLib. Anyone can open that link, also without an AfterLib account. preview_collection_action shows the effect first.
- delete_collection needs the exact name of the collection. Ask the user first. restore_collection undoes a delete.
Media and history
- search_ads returns compact ads by default. Use get_ad (or view "full") for full copy, cards, media[].previewUrl, and asset IDs for create_ad_media_download. Preview addresses expire; give appUrl for a link that stays.
- Show primaryMedia of an ad in full, at its original aspect ratio. If you cannot, give a text result.
- Quote a hook only if it is word for word in advertiserContent. Label your own angle or insight as analysis.
- History tools default to the last 30 days and accept explicit dates up to 5 years back.
Numbers
- euReach is cumulative EU & UK reach. Outside the EU it is null; use activeDuplicates and page activeUniqueAds instead.
- performance (0 to 100) shows sustained results, not sales or ROI; trend (0 to 100) shows current momentum. Show "AfterLib performance score 82/100" only with the returned number.
- euSpendEstimate is an estimate in US dollars. Call it an estimate.
- 0 is a measured zero; null means unavailable, not applicable, or unscored (inactive ads have null performance and trend). Leave out null values and show 0 as 0.
Credits
- One credit shows one ad or page.
- Seeing the same one again this month is free.
- An ad or page counts when it shows in your results, even if you do not open it.
- The app, the API and MCP use the same credits.
- get_account shows the credits left. It, the lists of collections and presets, and the collection changes are free.
- search_ads (also with pageId or collectionId) and search_pages (also with collectionId) return 7 results by default. Send nextCursor as cursor for the next page. Paused Meta Pages are hidden by default and excluded from API/MCP results.
- Ask the user before you read more than 100 ads or Meta Pages in one task.
Troubleshooting
- The assistant cannot change collections. You did not allow changes to collections when you connected. Disconnect AfterLib in the connector settings of your assistant. Connect it again, and allow changes to collections.
- No credits left. The assistant cannot show more ads or Meta Pages. Buy credits or change your plan in AfterLib, then ask again.
- Daily credits or too many requests. Wait the time that the assistant gives, then ask again. Ask for fewer ads at a time.
- Sign in again. Your connection ended. Disconnect AfterLib in your assistant, then connect it again.