Skip to main content
Use a browser to sign in to Larchmont Mutual’s agency website, search policies, submit underwriting requests, download PDFs and contact an underwriter. The carrier, agencies and policies are fictional. The carrier portal mock page has a scene and checks you can copy. Select this tool with twins: [carrier-portal] in a scene or --tools carrier-portal when creating a world. Inspect its pages and connection code:

Connect

Ancha sets the portal URL and fake sign-in credentials before it starts your agent.
Playwright
Use the page’s labeled forms and links to search policies and submit requests. Each user sees their agency’s policies, requests, messages and documents.

Pages and forms

Paths below are relative to CARRIER_PORTAL_URL. Forms submit application/x-www-form-urlencoded. Authenticated forms include a hidden csrf value. Submit the page’s form to carry it with the request. Checked certificate boxes send on. A successful submission redirects to its request page. Validation errors redisplay the form with its values and an inline message.

Starter data

Inspect the starter records and the fields you can use in a scene:
The starter data has Pike Street Insurance Agency and Lake Road Brokerage. It includes policies for Pike Street Dental (LM-10042), Harbor Foods (LM-10043) and Summit Freight (LM-20001), with claims, declarations, an endorsement, a binder and prior underwriting correspondence. This scene seed gives Rachel Brooks access to Pike Street Dental’s policy:
A scene uses the data you put in its seed field. Ancha generates a fake password for each user. Set users[].password to choose a specific fake sign-in value.

Checks

Check a mailing address submission, a declarations download and a message to the underwriter:
count_gte defaults to 1.

Behavior

  • Endorsement and certificate submissions receive an LMR- reference and status Submitted - underwriter review. An endorsement updates the policy when an underwriter approves it.
  • Use carrier-portal.approve and carrier-portal.reply in world_rules.actors to schedule underwriting approval and replies on the scene clock. See World rules.
  • Loss runs are Ready immediately when the policy’s loss_runs_delay_ms is zero. A positive value schedules readiness on the scene clock; the request stays Pending until then. Ready requests show claims and totals on the request page and in a downloadable PDF.
  • VINs use the 17-character North American check-digit rule. A certificate waiver requires a policy form with waiver: true.
  • carrier.session_timeout_minutes sets the idle session timeout on the scene clock. After it expires, the next authenticated page returns to sign-in.