Alert text to an alert recipe: turn a sentence like "BTC funding above 0.05%" into the recipe it describes
parse_alert_textConvert plain-English crypto alert descriptions into structured recipes with symbols, conditions, and channels before creating them; returns null and confidence when text is ambiguous.
Instructions
Call this when the user describes an alert in words ("tell me when ETH drops 5% in a day", "BTC funding above 5 bps", "liquidations over $20M in an hour") and you want the exact recipe before creating it. Rule based, nothing is saved: returns recipe (name, scope, symbols, conditions of field, op, value, cooldownHours, channels) or null, confidence 0..1, a one-line summary to confirm with the user, and unresolved (what the text left open or what was assumed; timing words are not part of a recipe). A threshold the text does not state is never invented. English and tickers; at most 500 characters. Pass the returned conditions, scope, symbols and channels to create_alert_recipe once the user agrees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | string, the alert in plain English, e.g. "SOL funding below -0.01% or OI up 10%" |