Ad card
ad_cardOn the owner's yes to an ad you offered, once they have seen the offer: keeps the picture (or the owner's own files), writes the ad's words in the business's voice and the buyers' language (a few tokens) and raises one card with where, who, the days and the most it can spend. Leave set_id out and it is for the picture or the owner's files you last offered in this chat, on the terms you offered, the countries too; name only what the owner changed. For the owner's files from an earlier offer, or files you didn't offer in this chat, name their attachments (with as) or film_id. Nothing spends until someone who may spend presses Start on that card. For a post to boost, the card comes once the post is live: until then it says so. Say what the card holds and that it waits for their Start. It needs an act key, and spends the owner's tokens as the chat's same tool would: say the price before you spend.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ad_card"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as | No | with two or more attachments: one_ad (one ad with its tall 9:16 version for Stories and Reels) or carousel (2 to 10 pictures, in the order given); one attachment is one ad | |
| link | No | where the ad sends people, when the owner named a page; omitted, the business's website | |
| brief | No | the owner's own words for the ad (an offer, an angle), when they gave some | |
| place | No | the place the owner named for the ad; omitted, where it was offered | |
| title | No | with attachments: what they are, in a few words, when the owner said | |
| set_id | No | the picture's set; left out, the picture this chat last offered as an ad | |
| caption | No | with attachments: what they sell and to whom, in the owner's words, when they said; the ad's words are written from it | |
| ends_on | No | the day it ends (YYYY-MM-DD), when the owner changed it; omitted, as offered | |
| film_id | No | a film Marsell made, whose plan the owner approved, to run as a video ad; in place of set_id | |
| item_id | No | the picture in the set; omitted, its first made picture | |
| per_day | No | the amount a day, when the owner changed it, in their ad account's currency (20 for $20); omitted, as offered | |
| project | No | The project's id or exact name. Optional when the account has one project. | |
| language | No | the buyers' language, when it is not the language of this chat | |
| countries | No | the countries for this ad (two-letter ISO codes), only when the owner named or changed them; omitted, as offered, which is Where ads may run unless countries were named then | |
| starts_on | No | the day it starts (YYYY-MM-DD), when the owner changed it; omitted, as offered | |
| attachments | No | the owner's own finished picture, video or pictures to run as they are, by their attachment ids (input.attached or attachment_read, sent here, on Telegram or Slack, or through an upload link), only when they ask to run the file itself; in place of set_id |