Skip to main content
The news tools give you full control over Soria’s news intelligence system. Use them to trigger the processing pipeline, manage configuration branches, and browse the events and articles that the pipeline produces.

news_pipeline

Run the news processing pipeline or check the status of the most recent run. The pipeline fetches articles, extracts structured data, and clusters stories into events.

Parameters

string
required
The operation to perform. Accepted values:
  • "run" — trigger the pipeline
  • "status" — return the status of the latest run
string
The configuration branch to run against. Defaults to the production branch.
string[]
Specific pipeline steps to run. Omit to run all steps in sequence. Accepted values: "fetch", "extract", "stories".
string
Start date for article fetching, in YYYY-MM-DD format. Overrides the branch’s days_back setting. Use for backfills.
string
End date for article fetching, in YYYY-MM-DD format. Defaults to today.

Returns

action="run" returns:
  • run_id — identifier for this pipeline run
  • status — current run status
  • articles_fetched — number of articles fetched
  • articles_scored — number of articles scored
  • events_created — number of story events created
action="status" returns the same fields for the latest run, plus trigger_type and any error message if the run failed.

Examples


news_branches

Create and manage configuration branches. Each branch holds its own fetch configuration, extraction prompt, and scheduling settings. The production branch is the default used by the pipeline and news events tools.

Parameters

string
required
The operation to perform. Accepted values: "list", "get", "create", "update", "delete", "clone".
string
The branch UUID. Required for get, update, delete, and clone.
string
Branch display name. Required for create and clone. Optional for update.
object
Branch configuration fields. Accepted keys include:
  • fetch_config — data source and fetching settings
  • extraction_prompt — prompt used during the extract step
  • schedule_enabled — whether the branch runs on a schedule
  • days_back — how many days of articles to fetch by default

Examples


news_events

List and filter news events (clustered stories) produced by the pipeline.

Parameters

string
required
The operation to perform. Accepted values: "list", "search".
string
The configuration branch to pull events from. Defaults to the production branch.
string
Filter events by review status. Accepted values: "pending", "approved", "rejected".
number
Maximum number of events to return.

Returns

Each event includes:
  • label — event headline or label
  • article_count — number of articles contributing to this event
  • id — event identifier
  • summary — a short preview of the event summary

Examples


news_articles

List and filter individual articles processed by the pipeline. Articles are scored and assigned to buckets during the extract step.

Parameters

string
required
The operation to perform. Accepted values: "list", "search".
string
The configuration branch to pull articles from. Defaults to the production branch.
string
Filter by the article’s relevance bucket. Accepted values: "relevant", "discard".
number
Maximum number of articles to return.

Returns

Each article includes:
  • relevance_score — numeric score assigned during extraction
  • bucketrelevant, discard, or unscored
  • title — article headline (truncated to 80 characters)
  • id — article identifier
  • source — source name, domain, or unknown
  • url — direct link to the article

Examples