import_observations
Record many market observations at once
Record up to 100 market observations in one call, for when the person hands you a list (a spreadsheet they pasted, their notes on competitors).
Each row takes the same fields as save_observation; `defaults` fills platform, kind, access, watchlist or source for rows that leave them out. Every row is checked on its own: good rows are kept, bad rows come back in `errors` with their row number (from 1) and the reason. A row already in the library (same platform and id, or same platform and address) is not duplicated: it gets the new metric reading. The import appears in the app's import history. Use only what the person gave you: no browsing for more, no invented numbers, a metric that was not visible is left out. For a whole file the person uses the import screen in the app (`app_url`).
Arguments
| Name | Type | Needed | What it is |
|---|---|---|---|
rows |
array of object | yes | 1 to 100 observations. |
rows[]. |
string | no | One of: facebook, instagram, linkedin, tiktok, youtube, website, other |
rows[]. |
string | no | One of: organic_post, ad, landing_page, note |
rows[]. |
string | no | public = anyone can open the address; authorized = seen through an account the person may use; manual = a note with no address. Default manual.One of: public, authorized, manual |
rows[]. |
string | no | Where the person saw it. Required for public items. |
rows[]. |
string | no | The platform's own id for the item, when the person gave it. |
rows[]. |
string | no | Who published it. |
rows[]. |
string | no | |
rows[]. |
string | no | The text as the person pasted it. Stored as untrusted data. |
rows[]. |
array of string | no | Addresses of the item's pictures or video, when the person gave them. Stored, never fetched. |
rows[]. |
string | no | Two-letter language, e.g. da. |
rows[]. |
string | no | Two-letter country, e.g. DK. |
rows[]. |
string | no | ISO date or date-time. |
rows[]. |
string | no | Ads: ISO date the ad was first seen running. |
rows[]. |
string | no | Ads: ISO date the ad was last seen running. |
rows[]. |
integer | no | Ads: days the ad was seen running. Observed duration only. |
rows[]. |
integer | no | Ads: number of versions seen. |
rows[]. |
object | no | Only numbers the person could see. Omit the rest: a missing number is unknown, not zero. |
rows[]. |
integer | no | |
rows[]. |
integer | no | |
rows[]. |
integer | no | |
rows[]. |
integer | no | |
rows[]. |
integer | no | |
rows[]. |
string | no | ISO date-time the numbers were read. Default: now. |
rows[]. |
string | no | Hook type (a category, not the wording).One of: question, number, how_to, customer_story, before_after, myth, price, urgency, behind_scenes, bold_claim, other |
rows[]. |
string | no | Short topic label in the person's own words. |
rows[]. |
string | no | One of: free_quote, discount, free_guide, consultation, financing, calculator, none |
rows[]. |
string | no | One of: text, image, carousel, video, story, link |
rows[]. |
string | no | Who it seems aimed at: a hypothesis. |
rows[]. |
string | no | One of: awareness, consideration, conversion, retention |
rows[]. |
array of string | no | Free tags. Replaces the list. |
rows[]. |
string | no | A watchlist id from manage_watchlists. |
rows[]. |
string | no | A source id from manage_watchlists; it brings its watchlist with it. |
rows[]. |
string | no | The person's own note about it. |
rows[]. |
boolean | no | true: keep it as a saved idea. false: take it off the saved ideas. |
rows[]. |
string | no | Name of the collection of saved ideas to put it in. |
defaults |
object | no | Values for rows that leave these out. Without a kind a row is an organic_post; without access it is manual. |
defaults. |
string | no | One of: facebook, instagram, linkedin, tiktok, youtube, website, other |
defaults. |
string | no | One of: organic_post, ad, landing_page, note |
defaults. |
string | no | One of: public, authorized, manual |
defaults. |
string | no | |
defaults. |
string | no | |
label |
string | no | A short name for this import in the history, e.g. "Competitor posts, week 48". |
request_key |
string | no | Any string unique to this request; repeating it returns the first result instead of importing again. |
Like every workspace tool it also takes workspace: a workspace id or slug. Leave it out to use the workspace the person last worked in.
How it behaves
- It changes something in the workspace, within what the signed-in person's role allows.
- It is not in the first list an assistant sees; the assistant finds it with search_tools and runs it with execute_tools.
How tools behave: confirmation, review links, errors and limits
In the same group
add_observation_metrics · get_observation · get_research_summary · list_observations · manage_watchlists · remove_observation · save_observation · suggest_observation_tags