Insurance

First Notice of Loss (FNOL)

Collect all required claim information immediately after an incident, creating a structured FNOL record without requiring a live adjuster on the first call.

Why this matters

Automate claims intake, policy renewals, and customer outreach with voice agents built for regulated insurance workflows. This example shows you how to automate first notice of loss (fnol) calls end-to-end with Guava's SDK — no telephony plumbing, no prompt engineering, just Python.

How to set persona & task
Working with Fields and Say items
Handling callbacks
Running the agent
Step 01

Installation

Install from Guava's private PyPI index. A public package is coming soon — the install command will simplify to pip install guava.

terminal
# Step 1: Install Guava
pip install gridspace-guava --extra-index-url https://guava-pypi.gridspace.com

# Public PyPI package coming soon — the install command will simplify to:
# pip install guava

# Step 2: Set your credentials
export GUAVA_API_KEY="..."
export GUAVA_AGENT_NUMBER="..."
Step 02

How it's built

Every Guava agent is a Python class. Walk through the key sections below, then grab the complete file at the end.

01

Imports

Import the Guava SDK and any helpers you need. guava.CallController is the base class for every voice agent.

example.py
# Install: pip install gridspace-guava --extra-index-url https://guava-pypi.gridspace.com
import guava
import os
02

Agent setup

set_persona() defines how the agent presents itself. set_task() gives it its mission in plain English. The checklist drives the conversation — Guava works through it top-to-bottom, collecting Field values and speaking Say items as it goes.

example.py
class FNOLBot(guava.CallController):
    def __init__(self, policyholder: str, policy_number: str, line_of_business: str):
        super().__init__()
        self.set_persona(
            organization_name="Keystone Insurance",
            agent_name="Alex",
        )
        self.set_task(
            objective=f"Collect first notice of loss information from {policyholder} for policy {policy_number}",
            checklist=[
                f"Greet {policyholder} with empathy and explain you'll take the claim details now.",
                guava.Field(
                    key="loss_date",
                    field_type="date",
                    description="Date the loss or incident occurred",
                ),
                guava.Field(
                    key="loss_description",
                    field_type="text",
                    description="Brief description of what happened",
                ),
                guava.Field(
                    key="loss_location",
                    field_type="text",
                    description="Location where the loss occurred",
                ),
                guava.Field(
                    key="injuries_involved",
                    field_type="bool",
                    description="Were any injuries involved?",
                ),
                guava.Field(
                    key="other_parties",
                    field_type="bool",
                    description="Were any other parties (people or vehicles) involved?",
                ),
                guava.Field(
                    key="police_report_filed",
                    field_type="bool",
                    description="Was a police report filed?",
                ),
                guava.Field(
                    key="best_callback_number",
                    field_type="phone",
                    description="Best number for adjuster to reach them",
                ),
                "Provide the claim number, next steps, and adjuster contact timeline.",
            ],
            on_complete=lambda fields: print(f"FNOL submitted for {policyholder}: claim created"),
        )

guava.dial(
    controller=FNOLBot,
    controller_args={"policyholder": "Diane Carter", "policy_number": "KI-8847291",
                     "line_of_business": "auto"},
    to=os.environ["POLICYHOLDER_PHONE"],
    agent_number=os.environ["GUAVA_AGENT_NUMBER"],
    api_key=os.environ["GUAVA_API_KEY"],
)

Platform performance

<1s

Response time

99.99%

Uptime SLA

13+

Industries served

Step 03

Full example

The complete file — copy it, save it as example.py, and run it.

example.py
# Install: pip install gridspace-guava --extra-index-url https://guava-pypi.gridspace.com
import guava
import os

class FNOLBot(guava.CallController):
    def __init__(self, policyholder: str, policy_number: str, line_of_business: str):
        super().__init__()
        self.set_persona(
            organization_name="Keystone Insurance",
            agent_name="Alex",
        )
        self.set_task(
            objective=f"Collect first notice of loss information from {policyholder} for policy {policy_number}",
            checklist=[
                f"Greet {policyholder} with empathy and explain you'll take the claim details now.",
                guava.Field(
                    key="loss_date",
                    field_type="date",
                    description="Date the loss or incident occurred",
                ),
                guava.Field(
                    key="loss_description",
                    field_type="text",
                    description="Brief description of what happened",
                ),
                guava.Field(
                    key="loss_location",
                    field_type="text",
                    description="Location where the loss occurred",
                ),
                guava.Field(
                    key="injuries_involved",
                    field_type="bool",
                    description="Were any injuries involved?",
                ),
                guava.Field(
                    key="other_parties",
                    field_type="bool",
                    description="Were any other parties (people or vehicles) involved?",
                ),
                guava.Field(
                    key="police_report_filed",
                    field_type="bool",
                    description="Was a police report filed?",
                ),
                guava.Field(
                    key="best_callback_number",
                    field_type="phone",
                    description="Best number for adjuster to reach them",
                ),
                "Provide the claim number, next steps, and adjuster contact timeline.",
            ],
            on_complete=lambda fields: print(f"FNOL submitted for {policyholder}: claim created"),
        )

guava.dial(
    controller=FNOLBot,
    controller_args={"policyholder": "Diane Carter", "policy_number": "KI-8847291",
                     "line_of_business": "auto"},
    to=os.environ["POLICYHOLDER_PHONE"],
    agent_number=os.environ["GUAVA_AGENT_NUMBER"],
    api_key=os.environ["GUAVA_API_KEY"],
)
Step 04

Run it

Start the agent. It will connect to Guava's infrastructure and begin accepting calls on your assigned number.

terminal
python example.py
Get Started