SCALIX help

← All tools

competitor_post_ads_to_slack

Competitor research send low risk

Part of the Competitor Ads Agent.

What it does

Posts a competitor's ads to a channel in the user's own Slack as ONE PDF with every ad in full: one message with the counts, and the PDF attached, which everyone in the channel can open in Slack. In the PDF, Google ads show every wording variation as Google's own picture of the ad, the dates shown, the topic, the countries, the audience targeting, the IDs and a link to the ad; LinkedIn ads show the page logo and name, the full post text above its picture, every image or carousel card, the headline, the button, who paid, EU data where LinkedIn publishes it, and a link to the ad. The pictures are inside the file, so they always show. Posting uses the user's Slack connection: they add the Scalix AI app to their workspace from the Scalix console once. A workspace that connected Slack before the PDF must reconnect once; until then the ads go as cards (a summary message, then each ad as a card in its thread) and the result says so. It posts at once: there is no preview to approve, so it also runs in a scheduled task. Returns `delivered` ('pdf' or 'cards'); for the PDF, `file` (name, pages, bytes, permalink) and `counts`; for cards, `posted`, `posted_as_text`, `failed` and the Slack `permalink`. Any public channel works (the app joins it); a private channel needs /invite @Scalix AI. Needs SCALIX_SEARCHAPI_API_KEY for the ads.

When to use it

Use FIRST whenever the user asks to send, share or post a competitor's ads to Slack, including a scheduled daily or weekly ads pull. Get the competitor's Google advertiser ids from competitor_find_google_advertisers when you can. For a PDF file, use competitor_ads_document.

Inputs

NameTypeRequiredDescription
channelstringyesThe Slack channel to post in, e.g. '#competitor-ads', or its id (C…). Any public channel; a private one needs the Scalix AI app invited.
domainstringnoThe 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_idsarray<string>noThe competitor's own Google advertiser ids (AR…), from competitor_find_google_advertisers. Precise: only these accounts' ads.
linkedin_pagestringnoThe competitor's LinkedIn page name, e.g. 'Rillet'. Defaults to the website's brand.
linkedin_aliasesarray<string>noOther LinkedIn page names that really are the competitor.
regionstringnoGoogle Transparency Center region, default 'anywhere'.
countriesarray<string>noISO two-letter countries for LinkedIn ads, e.g. ['US']. Omit for all.
limitintegernoAds per platform, 1-50 (default 10), the most recent first.
platformsarray<string>no'google', 'linkedin' or both (default).

Safeguards

Policy

Post the ads exactly as the libraries have them: never change an ad's words. Post only to the channel the user named. Competitors' ad copy is for analysis only and must never be reproduced in the client's own ads.

Reminder

Posts straight away, with no preview to approve. Every post is written to the audit log. The Slack token never appears in a response.

Errors

Error classMeansWhat to doRetry
connection_not_foundSlack is not connected for this Scalix account.Connect Slack in the Scalix console (it adds the Scalix AI app to the workspace), then try again. Meanwhile competitor_slack_ad_cards builds the cards for the user's own Slack connector, as text.no
not_foundThe channel does not exist, or it is private and the Scalix AI app is not in it.Check the channel name; for a private channel, /invite @Scalix AI in it, then try again.no
rate_limitedSlack's rate limit.Wait a minute and try again.yes
not_configuredSlack no longer accepts the connection (the app was removed or the token revoked).Reconnect Slack in the Scalix console, then try again.no
platform_unavailableSlack did not take the PDF.Try again in a minute.yes

Edge cases

  • No ads from either library: nothing is posted and the result says so.
  • A library that cannot be read becomes a line in the message and the PDF; the other library's ads still go.
  • A workspace connected before the PDF permission gets cards, with a note to reconnect Slack in the Scalix console once.
  • If the PDF cannot be built, the ads go as cards and the result says why.
  • A picture that cannot be downloaded shows as unavailable at its ad, which keeps its link; the result counts them.
  • A character the PDF's fonts cannot draw (for example Chinese or Hindi script) shows as '?'; each ad's link has the original.
  • A large pull (50 ads per library) takes longer to build and gives a bigger file.