> ## 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 assistant

> Use the in-app chat to find workspace information, prepare work, and confirm proposed actions

## Overview

The **AI assistant** opens as a chat panel beside the module you are currently
using. Ask it to find workspace information, suggest what to do next, or prepare
work such as a contact, project, task, time entry, quote, or invoice draft. What it
can do for you follows your role in the workspace.

Requests that change workspace data are shown as proposals. Review the proposed
values and choose **Confirm** or **Reject** before continuing.

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

## Before you start

An Admin must switch on the AI assistant for the workspace. If it is off, Admins
see **Enable AI assistant** in the panel, and everyone else is directed to contact
an administrator.

That is the only prerequisite. You do not need to prepare your data first: the
assistant works with the customers, projects, services, quotes, invoices, tasks, and
time entries you already have — and it can also help you create them. Distinctive
customer and project names help it pick the right record, but they are not required.

**What the assistant does depends on your role.** It never reaches further than you
do in the app. For a Timekeeper it looks up the projects they work on and their
tasks, and prepares time entries — nothing else. See [Roles](https://docs.leadtobill.com/guides/roles.md) for
what each role covers.

**How your data is used.** The AI service LeadToBill includes is hosted on Microsoft
Azure, and only the information needed for your request is sent to the AI model —
for example the contact and project names, quote or invoice details, service prices,
and time entries relevant to what you asked. Your data is not used to train the AI
model, and every change the assistant proposes is shown for your confirmation before
it is applied. If you or your workspace use your own provider key instead
([AI settings](https://docs.leadtobill.com/settings/ai.md)), requests are sent to that provider under your
agreement with them.

## Steps

**1. Open and adjust the assistant**

Select the assistant icon near the bottom of the left sidebar. The **AI
assistant** opens on the right while your current page remains visible.

Drag the panel's left edge to change its width. Double-click that edge to return
to the default width. Use **Hide assistant** in the panel header or the sidebar
button to close and reopen it.

**2. Enable the assistant when required**

**Admins only.** If the workspace has not enabled the feature, open the
assistant, review the notice shown there, and select **Enable AI assistant**.
The same switch is under **Administration → AI** ([AI settings](https://docs.leadtobill.com/settings/ai.md)),
where you can also switch the assistant off again.

Other roles cannot enable it themselves. They see a message asking them to
contact an administrator.

**3. Start a conversation**

The panel opens on its home view with two sections, **Quick actions** and
**Threads**. Enter a request under **Start a new chat…** and send it — **New
chat** puts the cursor there — or choose one of the **Quick actions**:

* **What's next?**
* **Unbilled time**
* **Recent customers**
* **Latest quotes**

A Timekeeper sees **What's next?**, **My open tasks**, **My projects**, and
**Track time** instead.

A new conversation is created when you send the first request. Inside a
conversation the message box reads **Type a question…**. For a useful
result, name the record and the action—for example, ask for a specific project
before asking the assistant to prepare a task for it.

**4. Review results and continue**

The assistant can show result cards for contacts, projects, quotes, invoices,
service types, workspace progress, and unbilled time. A card with **Open** takes
you to the corresponding record or module.

Suggested follow-up questions appear below the response. Select one to send it
as the next message, or enter your own question.

When your workspace still has incomplete setup stages, **Initial pipeline**
shows what has already been completed and what remains.

**5. Ask the assistant to prepare a change**

Describe the result you want and include the relevant names, values, dates, or
duration. The assistant can prepare common work such as:

* Preparing time entries.
* Creating or updating contacts and customers. For a new customer company the
  assistant suggests a customer code, and if you give it the company's website
  it can pre-fill the name, email, VAT ID, phone, and address from there.
  **Not available to Timekeepers.**
* Creating leads, projects, and tasks. **Not available to Timekeepers.**
* Updating a lead's status. **Responsibles of the lead, Controllers and Admins
  only.**
* Preparing quote or invoice drafts and their line items, and creating an
  invoice draft from unbilled time. Creating an invoice from a quote is not
  available through the assistant — use the Invoices module for that. **Not
  available to Timekeepers.**
* Adding service types to the service catalog. **Controllers and Admins only.**

An address is proposed in its parts: street, **House number**, **Address line
2**, postal code, city, and country, each shown on the card. If the country
could not be determined, the card says **Country missing**. If the address could
not be taken over at all, it says **Address not taken over — add it on the
contact**; the rest of the proposal still applies. When the assistant could not
read the website you named, the card says **Couldn't read the website. Add the
missing details in the chat.**

The assistant can only do what you can do. It acts within your own permissions,
so it will never make a change your role does not allow. And because every
change is proposed for your confirmation first, nothing happens without your
approval.

**6. Confirm or reject a proposal**

A proposed change appears with the status **Pending** and shows the values that
will be used. Check names, assignments, dates, durations, quantities, and
amounts carefully.

Select **Confirm** to apply the proposed change, or **Reject** to leave it
unapplied. The card then shows **Approved**, **Rejected**, or **Failed**. You
can also answer in the chat — a reply such as "yes" or "confirm" approves the
latest pending proposal, and "no" or "cancel" rejects it.

When you send a correction and the assistant prepares a new card, the earlier
one is marked **replaced** and can no longer be confirmed.

**7. Work through several proposals**

While anything is pending, a bar above the message box keeps track for you. With
one proposal it reads **Confirmation pending**; with several it shows
**Confirmation 1 of N** and an **Approve all N** button. Select **Show list** to
see every pending proposal in order, each with **View** to jump to its card.

Some proposals build on each other — a project on its customer, a quote on its
project, line items on their quote or invoice. Such a proposal is greyed out with
**waits for step N** until the one before it is confirmed; its own **Confirm**
stays disabled with the hint **Approve the prerequisite proposal first.**

**Approve all** confirms the list in order and stops at the first failure.
Rejecting a proposal also cancels everything that depended on it, shown as
**The pending action was cancelled.**

Proposals stay pending when you leave the conversation. In **Threads**, a
conversation that still waits for you shows how many, for example **2 to
confirm**.

**8. Manage earlier conversations**

Select the back arrow (**All chats**) beside the conversation's title to return
to the home view. Choose a conversation under **Threads** to continue it.

Each thread has a **⋮** menu (**Chat actions**). **Archive** moves the thread out
of the active list. Select **Archive** at the end of the **Threads** heading to
view **Archived threads**, use **Restore** in a thread's menu to return it to the
active list, and select **Active** to go back.

**Delete** in the same menu **deletes a conversation permanently** — it does not
go to the archive, it cannot be restored, and there is no confirmation step. If you
might want a conversation later, archive it instead of deleting it.

## Good to know

**The assistant stays beside your work.** You can keep a project, contact, quote, or
invoice visible while chatting. Selecting **Open** on a result card navigates the
main area to that record.

**Closing the panel does not end the conversation.** Reopen it from the sidebar to
continue. The panel remembers the selected conversation and its width in the same
browser.

**Quick actions are a starting point.** They are a section of the home view and
fold away once a conversation has begun. Return to the home view and select the
arrow beside **Quick actions** when you want to display them again.

**The checklist is conditional.** **Initial pipeline** is hidden when no guidance is
available or every listed stage is complete.

**Confirm is the commitment point.** If a proposal contains the wrong record or
value, select **Reject** and send a clearer request instead of confirming it. For a
pending contact or company you can also reply with the correction — the assistant
updates the proposal and tells you what is still missing.

**Existing companies are reused.** If you confirm a new customer company that
already exists in Contacts, the assistant links the existing record instead of
creating a duplicate and tells you so.

**Follow-up suggestions pause while you decide.** The suggested questions below a
reply are hidden while a proposal is pending, so the **Confirm** and **Reject**
buttons stay in focus. They also disappear when you send a new question; the next
answer brings its own.

**The assistant runs on a monthly AI allowance.** LeadToBill includes AI usage for
the workspace each month — a team pool and, within it, a share for you that depends
on your role. When it is used up, the assistant answers with a notice instead of
working on the request — for example **Your personal AI allowance for this month is
used up** or **The workspace's included AI allowance for this month is used up** —
and says that it resets at the start of next month. To continue right away,
Collaborators, Controllers, and Admins can add their own API key under
[AI settings](https://docs.leadtobill.com/settings/ai.md); a Timekeeper is asked to turn to a Controller or
Admin, who can set up a key for the whole workspace.

**An Admin's own hourly cost can hold back a time entry.** If an Admin asks for a
time entry before their own hourly cost is set, the card reads **Setup needed** and
**Not tracked: set your hourly cost first.** The assistant can then propose **Set
hourly cost**; once you confirm it, the time entry is offered for confirmation. This
is the Admin's internal cost, not the rate billed to the customer.

## FAQ

**Why does the assistant say it is not enabled?**
An Admin must enable it for the workspace. Everyone else should contact their
administrator.

**The assistant says the AI allowance is used up. What now?**
The allowance resets at the start of next month. To keep working right away, add
your own API key under [AI settings](https://docs.leadtobill.com/settings/ai.md) — or, as a Timekeeper, ask a
Controller or Admin to set up a workspace key.

**The assistant says a key couldn't be used. What does that mean?**
Your chats run on your own or the workspace's provider key, and the provider
refused the request, reached its limit, or could not be reached. Check the key
under [AI settings](https://docs.leadtobill.com/settings/ai.md). If it is the workspace's key and you cannot
edit it, ask a Controller or Admin.

**Can the assistant change workspace data without confirmation?**
Changes supported by the assistant are presented as Pending proposals. Review the
details and select **Confirm** or **Reject**.

**What should I do when a proposal is wrong?**
Select **Reject**, then send a new message with the correct record, value, date, or
other missing detail.

**How do I continue an older conversation?**
Return to the home view and select it under **Threads**. If it was archived, open
**Archive** and restore it first.

**Why are Quick actions no longer visible?**
They fold away once the conversation contains messages. Return to the home view
and select the arrow beside **Quick actions**, or start a fresh conversation from
the message box there.

**Why is an action unavailable?**
The available actions depend on your role, the records in the workspace, and the
information needed for the request. Try adding the missing context or complete the
task in its LeadToBill module.

**Why did Initial pipeline disappear?**
It is shown only while the assistant has incomplete setup stages to display.

**The assistant says it could not finish. What now?**
Send the request again, or split it up. A long request can end with **I worked
through several steps but did not get to a final answer** or **That request needed
a longer answer than I am allowed to produce in one go** — in both cases ask for
one part at a time. If the assistant service is busy or unreachable, the reply says
so and suggests how long to wait.

**Why can't I confirm one of the proposals?**
It depends on an earlier proposal that is still pending. Confirm the proposals in
the order shown in the pending-confirmations bar, or use **Approve all**.


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