How it works
What happens between a visitor's question and the answer.
whileisleep is a chat for your website. An AI agent answers from what you give it, and passes a chat to your team when a person is needed.
Who does what
- Visitors write in the chat widget on your site.
- The AI agent answers from your articles, your instructions and your own systems.
- Your team reads every chat in the inbox, and can take one over at any time.
What happens to a message
The cheapest way to answer goes first. Each step only runs if the one before it didn't settle the message.
- Rules. If one matches and has an exact reply, that reply is sent. The AI isn't used, so it costs nothing.
- Is it the AI's turn? If the AI is off, or a person has the chat, it waits for your team.
- Daily limits. Past the limit of AI replies for the day, the chat goes to your team. You set the limits.
- The AI answers. It reads the best passages of your articles, looks things up with your tools, and follows a playbook when one fits.
- A person. When the AI can't answer, or the visitor asks for a person, the chat is marked Needs a person.
Nothing is required to begin. Without an AI model, the agent searches your articles and shows the best matches.
What to give the agent
| You have | Use |
|---|---|
| Facts that rarely change, like shipping times | Knowledge base |
| A reply that must be word for word | Rules |
| Steps to follow in a tricky case, like refunds | Playbooks |
| Live data, like orders or stock | Tools |
| Tone, and what to stay away from | AI agent › Behavior |
Workspaces and organizations
A workspace is one website, with its own inbox, team, articles, tools and widget. An organization owns workspaces, and holds what they share: the AI model, the storage and the plan.