> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leadtobill.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AI-First Workflow

> Use the AI assistant to prepare a customer workflow from first record to invoice draft

## Overview

LeadToBill's AI-first workflow begins on the Dashboard: see what needs attention,
open the [**AI assistant**](https://docs.leadtobill.com/features/ai-assistant.md), and ask it to find information
or prepare the next piece of work. You stay in control because supported changes
appear as proposals for you to review before applying them.

This guide follows one practical sequence from a customer and lead through a
quote, task, time entry, and invoice draft.

> [card] [Start from the Dashboard](https://app.leadtobill.com)
>
> Open LeadToBill, review the Dashboard, then select AI assistant in the sidebar.

## Before you start

* The AI assistant must be switched on for the workspace. **Admins only** — see
  [AI settings](https://docs.leadtobill.com/settings/ai.md).
* **Not available to Timekeepers.** This workflow creates customers, leads, quotes,
  tasks, and invoices. For a Timekeeper the assistant looks up their projects and
  tasks and prepares time entries only. See [Roles](https://docs.leadtobill.com/guides/roles.md).
* Add the hourly and fixed services you expect to quote or track under
  [Service catalog](https://docs.leadtobill.com/settings/service-catalog.md). **Controllers and Admins only.**
* Use distinctive customer and project names so the AI assistant can identify the
  intended records.
* Include only the information needed for the current request.

Use sample names and values below as a pattern; replace them with your real
workspace details.

## Steps

**1. Ask for a starting point**

Open the AI assistant from the sidebar and select **What's next?**, or ask:

> What should I work on next in this workspace?

Read the result cards and follow-up suggestions. Select **Open** on a result
when you want to inspect the corresponding record before continuing.

**2. Prepare the customer**

Start with the record that the rest of the workflow will use:

> Prepare a customer company named Northstar Studio with customer code NORTH.

Check the proposed company name, customer status, and customer code. If you
leave the code out, the assistant suggests one from the name. If you add the
company's address or website, check the address parts on the card too — street,
house number, postal code, city, and country are shown separately, and the card
tells you when the country is missing or the website could not be read. Select
**Confirm** only when the values are correct — or reply with a correction, and
the assistant updates the proposal.

**3. Prepare the lead and project context**

Name the customer again and describe the opportunity:

> Prepare a lead named Northstar Website for Northstar Studio with expected
> revenue of 12,000 and a 60 percent chance.

Review and confirm the lead proposal. Continue in the same conversation so the
customer and lead remain easy to reference. Open the resulting record when you
want to check its [lead details](https://docs.leadtobill.com/features/leads.md).

**4. Prepare a quote draft**

Ask for the document and its initial work in one clear request:

> Prepare a quote draft for the Northstar Website project and add 2 days of
> Website Strategy from the service catalog.

A longer request can produce more than one proposal. Review the quote header,
service, quantity, and price on every Pending card. The line items build on the
quote, so they show **waits for step 1** until the quote itself is confirmed —
confirm in order, or use **Approve all** in the bar above the message box.

Finalize the content, preview the PDF, and manage the status in
[Quotes](https://docs.leadtobill.com/features/quotes.md).

**5. Prepare the work**

Ask for a concrete task on the project:

> Prepare a task named Discovery Workshop for the Northstar Website project,
> due next Friday.

Review the project, task name, and date before confirming. The task is created
unassigned; open [Tasks](https://docs.leadtobill.com/features/tasks.md) to assign it, add planning details,
or record time directly against the task.

**6. Prepare a time entry**

Include the project, duration, work type, and a useful description:

> Prepare a 90-minute billable time entry for Northstar Website with the
> description Discovery preparation.

Check the date, project, service type, billing type, description, and duration
before selecting **Confirm**. Use [Time tracking](https://docs.leadtobill.com/features/time-tracking.md) if
an existing entry needs to be edited later.

**7. Review unbilled time and prepare the invoice draft**

Start with a lookup:

> Show me unbilled time for Northstar Website.

Inspect the returned records, then ask:

> Prepare an invoice draft from the unbilled time for Northstar Website.

Review the customer, project, dates, and proposed invoice values before
confirming. Open the result in [Invoices](https://docs.leadtobill.com/features/invoices.md) to check the
document, finalize it, download the PDF, and handle delivery to the customer.

**8. Continue from the updated workspace**

Return to the AI assistant's home view (**All chats**) and use **What's next?**
again, or ask a focused follow-up about the customer or project. The Assistant now works with
the records you confirmed in the earlier steps.

## Good to know

**Confirm is the commitment point.** A Pending proposal has not changed workspace
data yet. Select **Reject** and send a corrected request when any value is wrong.

**Use exact names in every important request.** Repeating the customer or project
name prevents ambiguity when several records look similar.

**Separate preparation from final review.** The Assistant can prepare supported
records and document drafts. Use the corresponding module to preview customer
documents, complete statuses, and handle delivery.

**Long requests may create several proposals.** Review each card instead of
assuming the whole sequence is one change. Proposals that depend on an earlier one
wait for it; **Approve all** works through them in order and stops if one fails.

**Pending proposals wait for you.** If you leave a conversation before deciding,
its entry under **Threads** shows how many proposals are still to confirm.

**Lookups are useful before changes.** Ask to find a customer, project, quote,
invoice, service, or unbilled time first when you are unsure which record should be
used.

## FAQ

**What should I do if a proposal uses the wrong record?**
Select **Reject**. Send a new request with the exact customer or project name and
the corrected values.

**Why is an action unavailable?**
The action can depend on your role, workspace setup, available records, and the
details in the request. Complete missing setup or perform the action in its
LeadToBill module.

**The assistant says the AI allowance is used up. What now?**
The included allowance resets at the start of next month. To continue right away,
add your own API key under [AI settings](https://docs.leadtobill.com/settings/ai.md).

**Can I ask for several steps at once?**
Yes, but the AI assistant may return several proposals. A shorter request makes each
record and value easier to verify.

**Does confirming an invoice draft send it to the customer?**
No. Open the invoice module to review and finalize the document, download the PDF,
and handle delivery.

**Where can I review earlier AI work?**
Return to the AI assistant's home view and select the conversation under **Threads**. See
[AI assistant](https://docs.leadtobill.com/features/ai-assistant.md) for archiving and conversation controls.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.