Read car insurance estimates
get_quoteStep 3 of 3: read the quote_id start_quote returned, after poll_after_seconds, until more_carriers_pending is false. Never start_quote again to refresh a result.
Reads the estimates for a quote_id returned by start_quote. Carriers answer at different speeds: when more_carriers_pending is true the list is not final and poll_after_seconds says how long to wait before asking again. The list closes within a minute either way, with whatever arrived — a carrier that did not answer is not a price, and there is none to go looking for. Once it is closed, to_final_quote.next_call is what to do next. No price here is final, in any round: the final quote is calculated by Sigo in the link, after the carrier's questions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | The language the customer is writing in. Set it from their own messages rather than leaving the default: the estimate's notice comes back in this language, and a notice the customer cannot read discloses nothing. Sigo serves these two languages only. | es |
| quote_id | Yes | The handle start_quote returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| covers | Yes | ||
| quotes | Yes | ||
| status | Yes | ||
| contact | Yes | ||
| carriers | Yes | ||
| problems | Yes | ||
| quote_id | Yes | Pass this back to get_quote to read the result again. | |
| asked_for | Yes | Label each answer with this when comparing two quotes for the same customer, so "con deducible de 1000" is matched to the quote that asked for it. | |
| issued_by | Yes | ||
| quoted_at | Yes | ||
| expires_at | Yes | ||
| application | Yes | ||
| pending_note | Yes | What to do while carriers are still answering, in the customer's language. Null once the list is final. | |
| price_levers | Yes | ||
| to_final_quote | Yes | ||
| personal_use_note | Yes | Present when the customer said the vehicle is used for work. Say it with the prices: this quote is personal auto. Null when they said nothing about it, and then the subject is not raised. | |
| poll_after_seconds | Yes | How long to wait before calling get_quote again. | |
| revised_from_quote | Yes | True when this quote re-quoted the same customer: started with revise_of, or for a customer who already quoted today and was still at their first round. One person, one application, priced again. | |
| more_carriers_pending | Yes | True when more carriers may still return a price; the list is not final. |