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

# Give customer evidence to your own agent or tool

> Connect an internal assistant, a scheduled program, or a tool of yours to ClosedLoop AI, with rules that keep it from inventing evidence.

WhenPeople should get evidence where they work, without asking for itYou end up withA connection, rules the agent follows, and a way to check itWhereYour own assistant, program, or toolTimeHalf a day with an engineer

Connecting is the short part. What decides whether people trust the result is what the agent does when it finds little, when a name is not an account, and when nobody looks over its shoulder.

## Choose one job first

| Job | Runs | Good first version |
| - | - | - |
| **Evidence beside a project** | When a project or idea is opened | For each statement: up to three insights for, the strongest against, or "nothing found" |
| **A watch on one subject** | Every Monday | Only what is new since the last run, with accounts |
| **Questions in your own chat** | When someone asks | The answer, the accounts, and the ids behind it |
| **A prepared report** | Every month | The collecting step of [Write an update for leadership](https://closedloop.sh/docs/use-cases/leadership-update.md). A person writes it |

## Steps

**1. Connect it**

If each person signs in, use the [MCP](https://closedloop.sh/docs/mcp-server/overview.md). If a program runs without a person, [set up a service client](https://closedloop.sh/docs/account/mcp-service-clients.md). It can only read. If you want data in your own system and no agent, use the [API](https://closedloop.sh/docs/api-reference/introduction.md).

**2. Give it the rules**

Put this into the instructions of your agent, and add your own words for products and areas.

```text Prompt wrap theme={"dark"}
You answer questions about customers with evidence from ClosedLoop AI.

- Search in several wordings, as a customer would say it, in product insights and in strategic insights. Do not search only with the sentence you were given.
- Read the previews and open every result you use. The size of a result list is not a count: a search returns results also when nobody said it.
- Look for evidence against as hard as for evidence for.
- Count accounts, not mentions. A name in a result is often a person. Look up the account. List people without an account separately.
- Quote the customer's own words, with account, date, and id. Titles and summaries are not quotes. Never change a quote and never join two.
- Leave out our own people and test accounts: [domains and names]. If a question contains a claim, check the claim first.
- A filter by account can miss people who are not linked to it. Search without it too.
- Say what happened since: answered, built, promised, solved.
- If you find little, say so in the first line. "Nothing found" and "few customers talk about this area" are different answers. Say which one it is.
- Do not use paying status, revenue, or severity unless you are asked, and then say where it comes from.
- Never write to a customer, and never change data.
```

**3. Give it a memory of what it said**

A program that runs every day finds the same best results every day. Store the ids it has used, and tell it to leave them out or to say "unchanged".

**4. Check it before people rely on it**

Write ten questions: three you know the answer to, three about something no customer ever said, two about a single account, and two with a wrong claim in them. Run them, and after every change run them again.

| Look at | It fails when |
| - | - |
| The invented topics | It finds "evidence" |
| The wrong claims | It agrees |
| The quotes | One is not word for word in the insight with that id |
| The accounts | A person is counted as an account, or a colleague as a customer |
| The second run | It tells you the same as yesterday, as if it were new |

## What to know

* **Show the ids.** People trust an answer they can open.
* **Start with one team,** and read twenty of its answers yourself.
* **Long conversations** may not fit into one answer. Let the agent read them in a file, or work from the insights and say so.
* **A question nobody asked** costs the same as one somebody did. Run it when something is opened or changed, not for everything every night.

## What it cannot do

Know what your customers do in the product, or what your colleagues decided. Give it those sources separately, and keep them apart in the answer.

## Related

* [Get a brief every week](https://closedloop.sh/docs/use-cases/scheduled-brief.md), without any engineering
* [How to research a topic](https://closedloop.sh/docs/use-cases/research-a-topic.md), the method behind the rules


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