{"id":108515,"plugin_id":"plugin_asdk_app_6ae8d893858c8191ab5f913e54f71e5d","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-20T18:11:30.224Z","digest":"b02412264ff6724d7dffe8291f26fb705d7cea43d27cb3f735a0e7787e7977c2","against":null,"payload":{"description":"Use when a member asks about their TikTok Shop and the Titan AI TikTok tools are available, for example which shops are linked, sales and profit for a period, best and worst products, catalogue prices and cost of goods, stock by warehouse, VAT and fulfilment fee settings, or what Titan teaches and members discuss about TikTok Shop. The tools only read TikTok Shop data through the member's Titan Tools account.","included_files":[],"name":"titan-ai-tiktok","skill_md_contents":"---\nname: titan-ai-tiktok\ndescription: Use when a member asks about their TikTok Shop and the Titan AI TikTok tools are available, for example which shops are linked, sales and profit for a period, best and worst products, catalogue prices and cost of goods, stock by warehouse, VAT and fulfilment fee settings, or what Titan teaches and members discuss about TikTok Shop. The tools only read TikTok Shop data through the member's Titan Tools account.\n---\n\n# Titan AI TikTok\n\nTitan AI TikTok reads the TikTok Shops linked to the member's Titan Tools account, Titan's\nTikTok Shop lessons, and two TikTok Shop spaces of the Titan community.\n\n## Scope\n\n- TikTok Shop data only. These tools have no Amazon data and no data for any other\n  marketplace. If the member asks about one, say these tools have no data for it, and never\n  present TikTok figures as figures of another marketplace.\n- Read-only. No tool can change a price, a cost, a product, a listing, a setting, an ad or\n  anything else in TikTok Shop or in Titan Tools. When the member asks for a change, say it\n  cannot be made here and that they make it in TikTok Shop or Titan Tools themselves. Never\n  say that a change was made.\n- Only the shops the linked Titan Tools account reaches. Never present one shop's figures as\n  another shop's.\n- Every figure in an answer comes from a tool result. Do not estimate or fill in a missing\n  figure. A figure you calculate from returned figures (a change between two periods, a\n  share) is fine; say that you calculated it.\n\n## Pick the tool\n\n| The member wants | Tool |\n| --- | --- |\n| Which shops are linked, their currency, whether ads data is connected | `tiktok_list_shops` |\n| Sales, profit, fees and ad spend of a shop for a period | `tiktok_account_summary` |\n| Which brands, products or SKUs sold most, earned most or lost money | `tiktok_product_summary` |\n| Catalogue, prices, cost of goods, unit margin, stock | `tiktok_products` |\n| Where the stock of one brand, product or variant sits | `tiktok_inventory_breakdown` |\n| Brand names, inactive brands | `tiktok_brands` |\n| VAT and seller fulfilment fee settings, and why they change the figures | `tiktok_shop_settings` |\n| What Titan teaches about TikTok Shop | `tiktok_lessons` |\n| What members discuss in the TikTok Shop community spaces | `tiktok_community` |\n\nA data question needs no lessons search, and a lessons question needs no shop tool.\n\n## Shops\n\n- Every shop tool takes an optional `shopId`. When the account reaches one shop, leave it out.\n- When the account reaches several shops and the member did not name one, the tool answers\n  `SHOP_SELECTION_REQUIRED` and lists the shops under `organizations`. Ask the member which\n  shop they mean, then call again with its `shopId`. Do not choose a shop for them.\n- Take a `shopId` only from `tiktok_list_shops` or from `organizations` in an error answer.\n- Every successful shop tool answer carries `shop` with `name`, `shopId`, `countryCode`,\n  `currency` and `timezone`. Name the shop in the answer.\n\n## Dates (the two summary tools)\n\n- Dates are inclusive UTC calendar days in YYYY-MM-DD form, not the shop's local days. The\n  shop `timezone` is information only; the summaries do not use it.\n- With no dates, a summary covers the 30 complete UTC days that end yesterday (UTC). Use that\n  default when the member gives no period.\n- The last day can be yesterday (UTC) at the latest. Today is not complete, so a range that\n  ends today or later is refused with `INVALID_DATE_RANGE`. For \"this week\" or \"this month\",\n  end the range yesterday (UTC) and say so. On the first UTC day of a week or month, no\n  complete day of it exists yet: say so and offer the previous period.\n- Turn a relative period (\"last week\", \"last month\", \"Q3\") into explicit `startDate` and\n  `endDate` values before the call.\n- Every summary answer carries `requested` with `currency`, `startDate`, `endDate`, `timezone`\n  and `datesDefaulted`. Take the dates and the currency you report from `requested`.\n- To compare periods, call the summary once per period, with periods of equal length.\n\n## Currency\n\n- Summary money fields are in the shop's own currency unless `currency` is passed. Pass\n  `currency` only when the member asks for another currency, or after `CURRENCY_REQUIRED` or\n  `CURRENCY_UNSUPPORTED`.\n- The accepted display currencies are CAD, USD, MXN, BRL, EUR, GBP, SEK, ZAR, PLN, EGP, TRY,\n  SAR, AED, INR, SGD, AUD, JPY, CNY, CHF and NZD.\n- To add up or compare shops that sell in different currencies, pass the same `currency` to\n  every call.\n- `tiktok_products` takes no `currency`: each row is in its own `currency`, the currency the\n  shop sells in.\n\n## Reading the summary figures\n\n- Signs: cost lines (`refunds`, `cogs`, `tiktokFees`, `shippingCost`, `marketing`,\n  `affiliateCommission`, `samplesCost`) are negative. `adsSpend`, `ppcSpend` and\n  `ppcSpendAuction` are positive. Report a cost as an amount spent, without a double negative.\n- Margin chain: `totalNetRevenue` is net revenue after VAT. `cm1` is what is left after cost\n  of goods. `cm2` is what is left after `tiktokFees`, the seller fulfilment fee and, when fees\n  VAT is on, the VAT in those fees; the last two come only with `detail` true, so `cm1` plus\n  `tiktokFees` need not equal `cm2`. `cm3` is what is left after marketing (ads, affiliates\n  and samples): the bottom line. `cm1Pct`, `cm2Pct` and `cm3Pct` are percentages of\n  `totalNetRevenue`.\n- `tiktokFees` is more than TikTok's own charges: it also holds `shippingCost`, statement\n  adjustments, and the multi-channel and other fulfilment costs the seller entered per SKU.\n  Never subtract `shippingCost` a second time.\n- `gmv`, `orders` and `units` count what settled in the period, so they can differ from the\n  orders placed in it. `gmv` is what buyers paid for the goods, before fees and refunds.\n  `aov` is `gmv` per order. `tacos` is `adsSpend` as a percentage of `totalNetRevenue`.\n  `customers` cannot be added up across rows or periods, because one buyer can appear in\n  several.\n- The summaries leave out brands the shop has disabled. When `tiktok_brands` shows Inactive\n  brands, say the figures exclude them.\n- Null is not zero. A null figure means there is no data for it: say it is not available and\n  why, and never show it as 0. A field that is absent from the answer was not sent.\n- Advertising figures (`adsSpend`, `ppcSpend`, `ppcSpendAuction`, `ppcClicks`,\n  `ppcImpressions`, `tacos`, `marketing`, `cm3`, `cm3Pct`, `roc3`) are null when the shop's\n  advertising data is unavailable, for example when its Business (ads) API is not connected.\n  `connections` in `tiktok_list_shops` shows that state. A `connected` value of false alone\n  does not prove that the ads authorization was removed, because a failed lookup can show it\n  too.\n- There are two kinds of ads. GMV Max is `ppcSpend`, with `ppcClicks` and `ppcImpressions`;\n  Auction is `ppcSpendAuction`. The unfiltered account summary's `adsSpend` adds both. Auction\n  spend never reaches a product summary row, and `ppcSpendAuction` is null in a filtered\n  account summary. When the unfiltered `ppcSpendAuction` is above 0, say that ad\n  spend, `marketing`, `cm3` and `tacos` per brand or product leave Auction spend out, so\n  their `cm3` reads too high.\n- A cost per click or per impression divides `ppcSpend` by `ppcClicks` or `ppcImpressions`,\n  never `adsSpend`. When `notes` says the clicks and impressions were not reported, do not\n  calculate a click-through rate or a cost per click.\n- Cost of goods coverage: `skusMissingCogs` above 0 means that many SKUs sold without a cost\n  set, so `cogs` and every margin understate the cost. Say so next to the margins.\n- `noResults` on a summary means orders, units and gmv are all zero: nothing sold in scope, or\n  the filters matched nothing. Refunds, fees or ad spend can still be non-zero.\n- A summary filtered by `brands`, `spus` or `skus` counts statement adjustments as 0, so a\n  filtered figure can differ from the same part of the unfiltered total.\n- `detail` true returns every field Titan Tools reports (over 100 per row). Use it only when\n  the member asks for a figure the default answer does not carry.\n\n## Filters, grains and paging\n\n- Which tool takes which filter: the two summaries take `brands`, `spus` and `skus`.\n  `tiktok_products` takes those and also `skuIds`, `search` and `hideInactive`.\n  `tiktok_brands` takes `status` and `search`. A tool ignores an argument it does not take\n  and answers unfiltered, with no error. So never pass `search` or `skuIds` to a summary:\n  find the exact values with `tiktok_products` first.\n- `brands`, `spus`, `skus` and `skuIds` are exact, case-sensitive filters, combined with AND.\n  Copy their values from tool output: `brand` from `tiktok_brands`, `spu`, `sku` and `skuId`\n  from `tiktok_products`. `search` is case-insensitive and matches a part of a name.\n- Grains, from wide to narrow: `brand`, `spu` (one TikTok product), `sku`. To drill down,\n  filter by the row's `key` at the next grain: `brands` with `groupBy` set to `spu`, then\n  `spus` with `groupBy` set to `sku`.\n- The `sku` grain differs between the tools. In `tiktok_products` a `sku` row is one TikTok\n  variant and its `key` is the `skuId`, TikTok's variant id. In `tiktok_product_summary` a\n  `sku` row is one seller SKU label, its `key` is that label, and it can cover several\n  variants. To read a catalogue variant's sales, pass its `sku` (the seller label, not its\n  `key`) in `skus`. `tiktok_product_summary` carries no `skuId`.\n- Paged answers carry `total`, `page`, `pageSize`, `totalPages` and `hasNext`. When `hasNext`\n  is true, say that more rows exist, or ask for the next `page` when the member needs every\n  row. A page holds at most 100 rows.\n- An empty page carries `noResults` and a `hint`. Follow the hint, for example drop a filter\n  or ask for an earlier page.\n\n## The tools\n\n### `tiktok_list_shops`\n\n- No inputs. Answers `shopCount` and `organizations`, each with `name`, `role` and `shops`.\n  Each shop has `name`, `shopId`, `countryCode`, `currency`, `timezone` and `connections`\n  with `shopApi` and `businessApi`, each of them with `connected` and `connectedAt`.\n- `adsNote` is present when at least one shop's `businessApi` is not `connected`: for that\n  shop the summaries answer advertising figures as null.\n- Call it when the task needs a `shopId`, a shop's currency or the ads connection state. It\n  is not needed before every call.\n\n### `tiktok_account_summary`\n\n- One flat object for the shop over the period, optionally filtered by `brands`, `spus` or\n  `skus`. Default fields: `gmv`, `sales`, `orders`, `units`, `customers`, `aov`,\n  `grossRevenue`, `netRevenueChain`, `refunds`, `refundCount`, `refundPct`,\n  `totalNetRevenue`, `cogs`, `cm1`, `cm1Pct`, `cm2`, `cm2Pct`, `cm3`, `cm3Pct`, `tiktokFees`,\n  `shippingCost`, `marketing`, `affiliateCommission`, `samplesCost`, `adsSpend`, `ppcSpend`,\n  `ppcSpendAuction`, `ppcClicks`, `ppcImpressions`, `tacos`, `roc2`, `roc3`, `skusInScope`\n  and `skusMissingCogs`, plus `requested` and, when there is something to say, `notes`.\n- Use it for shop totals. Product summary rows can overlap, so their sum is not the total.\n\n### `tiktok_product_summary`\n\n- One row per `groupBy` value (`brand`, `spu` by default, or `sku`), sorted by `sortField`\n  (`gmv` by default) in `sortDirection` (`desc` by default), 10 rows per page by default.\n- Each row carries `rowType`, `key`, `brand`, `spu`, `sku`, `title`, `variantCount`,\n  `productCount` and the figures `gmv`, `units`, `orders`, `customers`, `aov`,\n  `grossRevenue`, `netRevenueChain`, `refunds`, `refundPct`, `totalNetRevenue`, `cogs`,\n  `tiktokFees`, `shippingCost`, `marketing`, `affiliateCommission`, `cm1`, `cm1Pct`, `cm2`,\n  `cm2Pct`, `cm3`, `cm3Pct`, `adsSpend`, `ppcSpend` and `tacos`, plus `requested`.\n- Ad figures on a row count GMV Max ads only. They do not reach SKU rows: on `sku` rows\n  `adsSpend`, `ppcSpend`, `tacos`, `marketing`, `cm3` and `cm3Pct` are null. For advertising\n  by item, use `spu` or `brand`.\n- Sorting: `desc` puts the largest value first. The cost columns (`cogs`, `tiktokFees`,\n  `marketing`) are negative here, so for the largest cost sort them `asc`. For the lowest\n  value of any other column, sort `asc`.\n- A row with `cogs` 0 while its `units` are above 0 has no cost of goods entered for any of\n  its SKUs, so its margins read too high. Say so, and do not rank it as a top earner on\n  margin; its variants in\n  `tiktok_products` show which costs are missing.\n- Only keys with activity in the period come back; a row can show 0 `units` when the period\n  holds only refunds. A product with no activity does not appear, so the lowest row is not\n  the worst product of the catalogue.\n\n### `tiktok_products`\n\n- Catalogue rows at `groupBy` `sku` (the default), `spu` or `brand`, 50 per page by default,\n  sorted by `sortField` (`title` by default; also `price`, `cogs`, `grossProfit`, `stock`,\n  `status`, `vatRate`). `hideInactive` true drops variants TikTok does not list as active.\n  Variants of disabled brands are not returned.\n- A row with `skuCount` 1 carries `price`, `cogs` and `grossProfit`. A row that folds several\n  variants carries `priceMin`, `priceMax`, `cogsMin`, `cogsMax`, `grossProfitMin` and\n  `grossProfitMax` instead. Fields with no value are left out, and `imageUrl` comes only with\n  `detail` true.\n- `grossProfit` is the price minus the cost of goods for one unit, in the row `currency`,\n  before fees and VAT. It is an amount, not a percentage.\n- `cogs` 0 with an empty `cogsCurrencyCode` means the seller never entered a cost for that\n  variant, so its `grossProfit` overstates profit. Say so.\n- On a group row, a variant with no cost counts as 0 in `cogsMin`, so `grossProfitMax` can\n  overstate profit. A group row sorts by the low end of its range (by its total for `stock`).\n- `stock` is the sellable units on hand across all warehouses, without the units already\n  reserved by orders (`committed` in `tiktok_inventory_breakdown`). A group row gives the\n  total of its variants. `status` is TikTok's listing status of the variant; a group shows\n  MIXED when its variants differ.\n- Quote a VAT rate (`vatRatePercent`, `effectiveVatRatePercent`, `defaultVatRatePercent`)\n  only when `vatEnabled` is true. When it is false, ignore every rate on the page.\n- Rows under the brand SYSTEM_TEMPORARY_LISTINGS (`listingType` TEMPORARY_LISTING) are LIVE\n  Auction temporary listings, priced 0, in a bucket Titan Tools assigns; it is not a real\n  brand. Leave them out of price, margin and missing-cost lists.\n\n### `tiktok_inventory_breakdown`\n\n- Explains one row's `stock`: `rows`, one per warehouse that holds units, with `warehouseId`,\n  `name`, `type`, `subType`, `region`, `available` and `committed`, most available first.\n- Take `level` from the grain of a `tiktok_products` row and `key` from that row's `key`: a\n  brand name at `brand`, an SPU at `spu`, or at `sku` the `skuId` (the `key` of a variant\n  row), never the seller SKU label.\n- Added up, `available` is the row's `stock`. `committed` units are reserved by orders and\n  are part of neither. A null `name` is probably a warehouse TikTok manages; show its\n  `warehouseId`.\n- An empty answer (`noResults`) is also what a wrong `key` looks like. Check the key before\n  you tell the member there is no stock.\n\n### `tiktok_brands`\n\n- `items` with `brand`, `status` (`Active` or `Inactive`) and `skuCount`, ordered by name,\n  filtered by `status` or `search`. Inactive brands show only here; every other shop tool,\n  the summaries included, hides them.\n- SYSTEM_TEMPORARY_LISTINGS is not a real brand: it is a bucket Titan Tools assigns to LIVE\n  Auction temporary listings. Say so when you list brands.\n\n### `tiktok_shop_settings`\n\n- Answers `salesVatActive`, `salesVatStartDate`, `salesVatDefaultRatePercent`,\n  `feesVatActive`, `feesVatStartDate`, `feesVatRatePercent`, `countryStandardVatRatePercent`\n  and `sellerFulfillmentFeePeriods`, each period with `effectiveFrom`, `feePerPackage` and\n  `currency`.\n- `salesVatActive` and `feesVatActive` say whether VAT is applied. Each needs its switch on\n  and a start date, and fees VAT also needs sales VAT. Quote a VAT rate only when that VAT is\n  active. A shop that never set VAT up shows its country's standard rate in\n  `salesVatDefaultRatePercent`; that does not mean VAT is applied.\n  `countryStandardVatRatePercent` is a reference rate only and is used in no figure.\n- An empty `sellerFulfillmentFeePeriods` means no seller fulfilment fee, and a period with\n  `feePerPackage` 0 has none in that period. A null `effectiveFrom` means from the start of\n  the shop history. A fee change reaches the summary figures only after a recalculation.\n- These dates are days in the shop's reporting timezone, not UTC days, so they can sit one day\n  away from a summary period.\n- Use it when net revenue or `cm2` from `tiktok_account_summary` looks different from what the\n  member expects.\n\n### `tiktok_lessons`\n\n- Takes `query` in plain words and `maxResults` from 1 to 10 (5 by default). Searches Titan's\n  TikTok Shop training: the TikTok Profit System course and the cross-platform Brand Workbook.\n- Each result can carry `title`, `section`, `space`, `spaceGroup`, `lessonDate`, `text`,\n  `url` and `score`. Base the answer on the returned `text` and name the lesson `title`.\n- Give a link only from a returned `url`. Never build or guess a lesson link.\n- `newestMatchDate` and `freshnessHint` give the newest dated item among the candidates the\n  search retrieved, not a date for the whole library. If the member asks about something\n  newer, say what was and was not found.\n- An empty answer (`noResults`) means nothing matched these words, not that Titan has no\n  material on the subject. Try other words once before you say nothing was found.\n\n### `tiktok_community`\n\n- Takes `query` and `maxResults` like `tiktok_lessons`. Searches only the two TikTok Shop\n  spaces of the Titan community (TikTok Shop Feed and TikTok Shop Updates), not the\n  community's general discussion.\n- Each result carries `title`, `parent_post_title`, `space_name`, `created_at`, `post_type`,\n  engagement counts (`like_count`, `comment_count`, `comments_count`, `reply_count`) and\n  `score`. It carries no post text, no author and no link: do not quote a post, name an\n  author or offer a post link.\n- A community post is what a member wrote, not Titan guidance. Present it as community\n  discussion, apart from lessons.\n\n## Common tasks\n\n- **Shop review for a period:** `tiktok_account_summary` for the period, then\n  `tiktok_product_summary` at `spu` for the top rows. Report sales, refunds, costs, the three\n  margins, advertising, the top products, and each data gap (missing cost of goods, no ads\n  data, Auction spend left out of product rows, disabled brands left out).\n- **Compare two periods:** two `tiktok_account_summary` calls of equal length. Give both\n  periods and the change in amount and in percent.\n- **Best or worst products:** `tiktok_product_summary` with the member's measure as\n  `sortField`. Mind the sort direction of the negative cost columns, and flag rows with\n  `cogs` 0.\n- **Stock check:** `tiktok_products` sorted by `stock` (`asc` for the lowest, `desc` for the\n  most), with `hideInactive` true when only live listings matter. For one row's warehouses,\n  `tiktok_inventory_breakdown` with that row's grain as `level` and its `key`.\n- **Unit margin and missing costs:** `tiktok_products` at `sku`, reading `price`, `cogs` and\n  `grossProfit`, and listing the variants with no cost entered, without the temporary\n  listings.\n\n## When a tool answers an error\n\nAn error answer has `error` true, a `code`, a `message`, `retryable` and usually a `hint`.\nFollow the hint. Retry only when `retryable` is true or the hint says to. Tell the member what\nhappened in plain words; do not paste the error, and do not guess another cause.\n\n| `code` | What to do |\n| --- | --- |\n| `SHOP_SELECTION_REQUIRED` | Ask which shop, naming the shops in `organizations`, then call again with its `shopId`. |\n| `SHOP_ACCESS_DENIED` | The linked account cannot read that shop. Offer the shops it does reach (from `organizations` or `tiktok_list_shops`). |\n| `NO_SHOPS` | Retry once. If it stays, tell the member no TikTok Shop is visible to their Titan Tools account and to check in Titan Tools that the shop is connected. Do not say a connection was removed. |\n| `LINK_REQUIRED` | The member removes Titan AI TikTok in their AI app and adds it again, which signs them in to Titan Tools afresh. |\n| `ACCESS_DENIED` | The account is not allowed to read this data. If its permissions changed, removing and adding Titan AI TikTok again picks up the change. |\n| `UPSTREAM_AUTH_UNAVAILABLE` | A temporary network problem. Retry shortly. Do not ask the member to link the account again. |\n| `UPSTREAM_RATE_LIMIT` | Wait a few seconds (`retryAfterSeconds` when present) and retry once. |\n| `UPSTREAM_TIMEOUT` | Narrow the request (a shorter period, a filter or a smaller page) instead of repeating it. |\n| `UPSTREAM_UNAVAILABLE` | On a shop tool, retry once; if it fails again, say the data is unavailable right now. On the lessons or community search, retry once or answer without that source. |\n| `INVALID_DATE_RANGE` | Correct the dates: YYYY-MM-DD, start on or before end, end no later than yesterday (UTC). |\n| `CURRENCY_REQUIRED`, `CURRENCY_UNSUPPORTED` | Pass `currency` from the accepted list; ask the member which one if they named none. |\n| `INVALID_ARGUMENTS`, `INVALID_REQUEST` | Correct the arguments against the tool's inputs and call once more. |\n| `UPSTREAM_REJECTED` | Titan Tools refused the request. Do not repeat it unchanged; say it could not be read. |\n| `BETA_ACCESS_REQUIRED` | The account has no access to Titan AI TikTok yet. Tell the member, with the way to ask for access from the hint. Do not retry. |\n| `INTERNAL_ERROR` | A server problem. Nothing was changed. Say it is unavailable right now; do not retry. |\n| `RATE_LIMIT` | The lessons or community search is rate limited. Retry once after a few seconds, or answer without that source. |\n| `PROVIDER_OUTAGE`, `CONFIGURATION`, `AUTH_FAILURE`, `UNKNOWN` | The lessons or community search is unavailable. Do not call it again in this turn; answer without it and say so. |\n\n## Answer format\n\n- Lead with the answer to the question, then the figures behind it.\n- Name the shop, the period (from `requested`) and the currency.\n- Show money with its currency code and two decimals, percentages with one decimal, and\n  counts as whole numbers.\n- Use a table for several rows (products, warehouses, shops), in the order the tool returned.\n- Give each data gap in one line: what is missing and why. Never show a missing figure as 0.\n- Use plain words for figures (for example \"contribution margin after fees\" for cm2) and keep\n  tool names, field names and error codes out of the answer unless the member asks for them.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}