File the customer's answers to the carrier's questions
answer_carrier_questionsAfter carrier_questions: file the answers, passing answers_so_far back each time, until the set is complete.
Saves what the customer answered against their application, which is what moves it towards a final quote. Send every answer under the code it came back with, and only what the customer actually said.
This does not take payment, sign anything or bind coverage. Those happen in Sigo's own flow, through the link that comes back here.
The carrier takes its questions as a set, so answers are held until every one has been given. Pass the answers_so_far from the previous call back in, and only the new answer needs to go in answers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | Yes | 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. | |
| answers | Yes | What the customer said, in their own answers. Never filled in on their behalf. | |
| quote_id | Yes | The handle start_quote returned. | |
| answers_so_far | No | The `answers_so_far` from the previous call, when there was one. It carries what the customer already answered, so only the new answer needs to go in `answers`. It survives a re-quote: after start_quote with revise_of, send the same token with the new quote_id and the answers still stand, as long as the carrier is the same one. Nobody has to be asked twice. | |
| chosen_quote_id | Yes | The estimate the customer picked. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | What is done and what is still ahead, in the customer's language. | |
| filed | Yes | True once the carrier has the whole set. The carrier takes it whole or not at all, so answers are held until every required question has one. | |
| answered | Yes | How many of the carrier's questions have an answer so far, counting the earlier turns. | |
| next_step | Yes | Paying and signing happen here, not in this conversation. | |
| still_needed | Yes | The codes of the required questions with no answer yet. Empty when the set is complete. | |
| answers_so_far | Yes | Everything answered up to now, to pass back on the next call so nothing is lost. Null once the carrier has the set and there is nothing left to carry. |