Skip to content

A home insurance quote, from the form to the sales team

The demo form Devis assurance habitation (a home insurance A priced proposal made to a client, valid until a date.Glossary →, in French) shows the suite’s products working as one:

  • the console holds a connection to the State’s public API of the communes, which the form uses for its list of departments, to check the postal code and to look up the commune;
  • Rate prices the quote with the Everything Rate needs to price one insurance product: its models, rate tables, lists of values and constants.Glossary → Multirisque habitation (démo) (demoHabitation), as the respondent answers;
  • Studio keeps the response with its price, then its automations email the sales A part of your organization or of your network, such as an agency, a distributor or a sales team. Teams can sit under one another, and a person belongs to one.Glossary → and notify people in the The administration app of the suite, where your administrators manage its people, roles, connections and settings. It is also where everyone signs in.Glossary →.
  • Docs makes the quote as a PDF from each response, with the What the client pays for a contract over a term, taxes and fees included. It is billed in installments.Glossary → Rate gave; the client gets it by email, through a link, and can download it from the form’s ending.

The Bysur team sets this demo up for you in a demonstration Your company as the suite knows it: its people, its records and its settings. Everything you see belongs to one organization, and nobody from another organization sees it.Glossary → with Rate and Studio, with their demo data: the platform’s brings the Another system the suite calls for you, such as a lookup service or a tool of your own, with its address and its access, set once in the console.Glossary → to the communes, Rate’s the tariff demoHabitation, and Studio’s this form with its automations and sample responses.

This form needs Rate in the organization’s What your organization subscribes to: the apps and options it may use, and limits such as the number of users or the storage.Glossary → and Rate’s demo data loaded first. Without them, Studio’s demo data brings the other forms, and the load says why this one is missing.

For the quote document, the organization also needs Docs and its demo data (the template Devis assurance habitation), and the feature that lets a person without an account open a Docs link. Without Docs, the form comes without its document; without the links, Docs makes the document but neither emails nor offers it.

In the console, open Connections: Communes de France (API Géo) is listed, with the address https://geo.api.gouv.fr. Test it from its row: type /departements in Path to call, then Call it now. The server calls the address and shows the status, the time and the start of the answer (see Connections).

Open the live form (Studio, the form’s Publish and share gives its link):

  1. Département: the list comes from the connection.
  2. Code postal: type 75001 with the Rhône. The form checks it through the connection and says no commune of that department matches. Type 69003: the message goes away.
  3. Recherche de la commune: a Look up in your system A piece of a page that you add, move and set up: in a Studio form, a question, a text, a picture or a section; in a Docs template, a heading, a paragraph, a table or a picture.Glossary → reads the commune of that postal code through the same connection and fills Commune (Lyon) and Code Insee de la commune (69123). You cannot change them; change the postal code and they follow. Only on the server is off, since the communes are public (see Look a record up in another system).
  4. Answer the questions about the home, then those about the A guarantee of a product: what is insured, with its ceilings, its excess and its waiting period for each formula.Glossary → (contents, deductible, A loss a client declares on a contract. It is checked against the contract's covers, assessed, approved and paid.Glossary →).
  5. Votre tarif: the price comes from Rate, with the version of the tariff in force today. Change the surface or the deductible, go back, and the price follows.
  6. Fill in the contact page and send the quote.

The server does not trust what the browser was shown: when the quote is sent, it checks the postal code again, looks the commune up again, reads the list again and asks Rate for the price again, page by page, before keeping the response.

In Studio, open the form, then Responses, and open the response you sent:

  • the answers, and Votre prime habitation with the price Rate gave;
  • What ran after this response: Prévenir l’équipe commerciale (Notify the sales team), Done.

On the form’s Automations:

  • Prévenir l’équipe commerciale emails the sales team, for every response: the answers, the price, and a link to the response in Studio; replies go to the respondent’s address. It also notifies people in the console.
  • Gros logement à revoir (Large home to review) runs only when surface > 200 or contentsCapital > 100000: for the other responses, each response’s What ran after this response and the automation’s history show it Not needed.

In the console, the bell at the top shows the A short message addressed to you, in the bell of every app: an invitation sent, a template to review, a mention.Glossary →.

With Docs and its demo data:

  • the The last page of a Studio form, shown once the answers are sent, such as a thank-you message.Glossary → Devis envoyé offers Télécharger votre devis: the PDF of the quote, with the client, the home, the cover and the premium Rate gave, made when the form was sent;
  • the automation Envoyer le devis au client (Send the quote to the client) has a Create a document action that fills the template Devis assurance habitation with the answers and the premium, then an email to the respondent’s address with Download “Votre devis habitation”;
  • both ask Docs for the same document, through Docs’ governed tools as the form: in Docs, Documents lists one document per response, made by a product, tied to the response by its id;
  • in Studio, Responses, Print downloads the answers laid out by Docs as a PDF.
StepProductWhat happened
The department listConsole, connectionThe server read /departements from the public API, for the form’s organization.
The postal codeConsole, connectionThe server read /communes?codePostal=…&codeDepartement=…; nothing found, the answer is refused.
The communeConsole, connectionA A step of a Rate model that finds the first row of a rate table matching its keys and copies its values.Glossary →: the server read the commune of the postal code and filled two questions with it.
The priceRaterate.calculate on demoHabitation, with the A frozen, numbered copy of a tariff's draft, in force from a date. Calculations use the release in force on their date.Glossary → in force; the response keeps the price.
The responseStudioNumbered, kept with its answers and price, announced as bysur.studio.response.received.v2.
The follow-upStudio automations, consoleOne run per automation and response: an email, a notification; a failed action is tried again later.
The quote documentDocs, through Studiodocs.document.generate as the form, the response’s id as its correlation id; a link for one document, emailed and on the ending.

The same pieces are available to every organization:

  1. In the console, add the connection to your management system or partner.
  2. In Rate, publish the tariff that prices your product.
  3. In Studio, use the connection for a list, a check or a lookup, add a Price from Rate block, then set up the automations (see Connections and Rate in forms).
  4. In Docs, start the quote template’s data from the same tariff (Bring in fields, then A Rate tariff), put the premium on the page and publish it. One call then prices and prints a quote: POST /api/v1/docs/documents with the tariff and its inputs under rate (see Documents over the API). When Rate publishes a version that no longer fits the template, the publish dialog in Rate names it, and the template’s checks say what to change.
  5. Back in Studio, add a Create a document action to an automation, or Offer a document to download to the ending, with that template and the answers and the price mapped to its fields; an email of the automation links it (see Make a document and send it).

The quickest start: on your published tariff, Use this tariff in Rate makes the quote form and its quote template, already linked, with the automation that makes each response’s document; you review them and publish them (see Link products in one step).

The end-to-end test apps/studio-e2e/src/real/products-together.spec.ts plays this walkthrough on a running stack.