competitor_slack_ad_cards
Competitor research read low risk
Part of the Competitor Ads Agent.
What it does
A competitor's ads as a ready Slack thread, for Claude to post with the user's own Slack connector: `parent` (a summary: the libraries, the date, the counts and any library that could not be read) and `cards[]`, one message per ad. A Google card carries Google's own picture of the ad (for text ads it is the whole ad), the advertiser, the format, the dates Google showed it and a 'View in Ads Transparency Center' button; ads from another advertiser are labelled. A LinkedIn card carries the page logo and name ('Promoted'), the post text exactly as written, the ad's image (or carousel cards, document, event or video cover), the headline with the ad's button, 'Paid for by' and EU dates, and a 'View in LinkedIn Ad Library' button. Every message comes in two forms: `blocks` (Slack Block Kit cards) and `text` (the same card in Slack markdown, its picture link first so Slack previews it). Data comes from competitor_get_transparency_ads and competitor_get_linkedin_ads, so it needs SCALIX_SEARCHAPI_API_KEY. Read-only: Scalix never posts to Slack.
When to use it
Use only when the user wants to post the cards through their own Slack connector in Claude, or competitor_post_ads_to_slack says Slack is not connected in the Scalix console. Claude's Slack connector sends text only, so the pictures arrive as links; to send competitor ads to Slack as one PDF with every ad, use competitor_post_ads_to_slack.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
domain | string | no | The competitor's website, e.g. 'rillet.com'. Used for Google ads when no advertiser ids are given, and as the LinkedIn page name when none is given. |
google_advertiser_ids | array<string> | no | The competitor's own Google advertiser ids (AR…), from competitor_find_google_advertisers. Precise: only these accounts' ads. |
linkedin_page | string | no | The competitor's LinkedIn page name, e.g. 'Rillet'. Defaults to the website's brand. |
linkedin_aliases | array<string> | no | Other LinkedIn page names that really are the competitor. |
region | string | no | Google Transparency Center region, default 'anywhere'. |
countries | array<string> | no | ISO two-letter countries for LinkedIn ads, e.g. ['US']. Omit for all. |
limit | integer | no | Ads per platform, 1-50 (default 10), the most recent first. |
platforms | array<string> | no | 'google', 'linkedin' or both (default). |
Safeguards
Policy
Post the ads exactly as the libraries have them: never change an ad's words. A Google ad from another advertiser is labelled and never presented as the competitor's. Competitors' ad copy is for analysis only and must never be reproduced in the client's own ads. Post only to the channel the user named, through the user's own Slack connector.
Reminder
Read-only — Scalix builds the messages and posts nothing; the Slack connector asks the user before it sends. The SearchApi key never appears in the messages.
Errors
| Error class | Means | What to do | Retry |
|---|---|---|---|
invalid_argument | No competitor was given, or platforms held something other than google and linkedin. | Pass the competitor's website (and its Google advertiser ids or LinkedIn page name when known); platforms is 'google', 'linkedin' or both. | no |
Edge cases
- A library that cannot be read (quota exhausted, not configured, not found) becomes a line in the summary; the other library's cards are still built.
- If the Slack tool takes only text, post each message's `text`: its picture link comes first, so Slack previews the picture.
- If Slack rejects a card because it cannot download a picture (invalid_blocks), post that card's `text` instead.
- A LinkedIn post longer than Slack's 3,000-character limit is cut, and the card says the full post is in the ad link; a cut-short LinkedIn preview is labelled.
- LinkedIn picture links are signed and can expire after some days; the ad links do not.
- No ads from either library means nothing to post: tell the user instead.