> For the complete documentation index, see [llms.txt](https://help.solink.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-create-and-configure.md). Agents can also search and read this documentation through its [MCP server](https://help.solink.com/~gitbook/mcp).

# Agents: Create and Configure

A universal guide on creating agents in the Solink platform.

This guide walks you through each step of creating and deploying an AI Agent. Not all agents share the same steps, but many share similar setup options, all of which are outlined in this guide.

For a high-level overview of the agents and agent categories Solink offers, see the [Agents: Getting Started guide here](https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-getting-started.md#available-agents). Take note of the [requirements needed for agent creation](https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-getting-started.md#requirements) access.

**Note**: While most steps in this guide are universal to all agents, some agents require specific configurations for schedules and triggers. The difference in available options between agents are highlighted throughout this guide.

***

## Ways to Create an Agent

You can create an agent from the main **Agents** page in two ways:

* **Build with Link**: Describe what you want the agent to do in your own words. Link, Solink's AI assistant, asks you questions and sets up the agent for you:

  ![The View templates and Build with Link buttons on the Agents page](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-245a43df131311aef5dfe5d98b48afce2dda700c%2Fagents-page-create-buttons.png?alt=media)
* **Classic Setup**: Some agents require "classic" setup and do not offer the Build with Link setup currently. This includes the Overnight Guard, Loss Prevention (LP) and Precise Store Opening agents. To set up one of these agents, see [Create an Agent with the Classic Setup](#create-an-agent-with-the-classic-setup).

## Build an Agent with Link

Link is an AI assistant that builds the agent with you. You tell Link what you want to watch for, and Link suggests the settings. You can accept the suggestions, change them, or set any step yourself.

### Checks and Events

This guide and the Link screens use two terms to describe how an agent works:

* **Check**: One run of the agent. At each check, the agent looks at the cameras and answers the questions in its event structure. The schedule sets when checks happen.
* **Event**: The record of one check. The agent records an event after every check and reports on its findings. Each event card shows the agent's answers to the questions that you set in the [**Event structure**](#event-structure) step.

When the agent finds what its instructions tell it to watch for, Link says that the agent "flags" the event. Each agent has one **Yes / No** answer that decides if it flags an event. For example, if the question is "Is the back door open?", the agent flags the event when the answer is **Yes**. If the question is "Is the employee wearing a hairnet?", the agent flags the event when the answer is **No**.

For example, an agent checks the back door every hour from 10 PM to 6 AM. The agent records an event for each check, so it records about 8 events each night. At 2 AM the door is open, so the agent flags that event. If the agent sends a text message only for flagged events, you get one text message for that night.

**Note**: Notifications do not go only to flagged events by default. If you do not set a condition in **When**, the agent sends a notification after every check. Link usually sets this condition for you. For more information, see [Email, SMS, and Push Notification](#email-sms-and-push-notification).

### The Build with Link Screen

The **Build with Link** screen is divided into two sections:

* **Chat** (left): Link asks one question at a time. Select an answer, or type your own answer in the text box.
* **Guided setup** (right): A checklist of every setup step. It shows how many steps are complete, for example **3 of 8 steps complete**. Select a step to see or change its settings yourself, then select **Done**. Each step in **Guided setup** shows a short summary of its current settings, so you can check the setup at a glance.

![The Build with Link screen, with the Link chat on the left and the Guided setup checklist on the right](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-25d7dd55dd48d06e69687791cba210ad4cb3da73%2Fagents-link-build-with-link-screen.png?alt=media)

### Create an Agent with Link

To create an agent with Link:

1. On the **Agents** page, select **Build with Link** (or select **View Template** > select a template on the page that matches your use case):

   ![Build with Link button on the Agents page](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-62559db7de8f1e3fe0dd731463e04903a9428682%2Fagents-link-build-with-link-button.png?alt=media)
2. Tell Link what you want the agent to watch for. For example, "Tell me when the back door is left open after closing."
3. Answer each question. Link moves through the setup steps in order and checks off each step in **Guided setup**.
4. When Link asks about tuning, choose whether to tune the agent now or later. To tune, you tag a few events with the answers that you expect. This confirms that the agent understands what you want it to watch for. For more information, see [Tuning](#tuning).
5. Check the summary of each step in **Guided setup**. To change a step, select it, or ask Link in the chat. **Note**: If you make a change, select **Continue** to ensure Link processes your change(s).
6. Select **Save Agent**. **Note**: If you have tuned the agent, you may need to wait until the agent finishes tuning until the **Save Agent** button is available.

After you save, the agent's page opens. You can watch its results on the **Performance** and **Logs** tabs. For more information, see [Agents: Performance Insights and Settings](https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-performance-insights-and-settings-agent-dashboard.md).

### Tips for Working with Link

You can work with Link in different ways:

* **Set a step yourself**: Select the step in **Guided setup**, then add the settings yourself. You do not have to use the chat:

  ![Instructions step open in Guided setup next to the Link chat](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-1c38f2f30ac17b0e39ee29f624baa9d8e46a6275%2Fagents-link-instructions-panel.png?alt=media)

  Below some of Link's questions, you can also select **Set up manually** to open that step. To go back to Link's choices, select **Back to the choices**:

  ![Set up manually button below a Link question](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-917c4a79d9bd1bd4f36e50c72ba5c64921426e9f%2Fagents-link-set-up-manually.png?alt=media)
* **Let Link finish**: Select **Finish setup for me**. Link fills in every remaining step with its recommendations, then asks about tuning:

  ![Finish setup for me button above a Link question](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-e657c252c17b2fad5659a9294495cc191052a128%2Fagents-link-finish-setup-for-me.png?alt=media)
* **Stop**: To leave without saving, select **Cancel**. Solink does not save your work automatically. If you leave before you save the agent, you lose the chat and all the settings, and you must start again. If you do not have enough agent hours, you can save the agent disabled to keep your work. See [Save the Agent](#save-the-agent).

**Tip**: The more specific your description, the better Link can set up the agent. For more information, see the [agents prompting guide](https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-prompting-best-practices.md).

## Setup Steps

This section explains each step in **Guided setup**. Link fills in these steps for you, but you can change any of them.

### Instructions

Describe what the agent should watch for. The agent uses these instructions to decide if it flags an event. For more information, see [Checks and Events](#checks-and-events).

![The Instructions step in Guided setup, with the Definition box](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-2e61171c1f388cea94337576dee5eaf469d97ec0%2Fagents-link-instructions-step.png?alt=media)

Write the instructions in plain language (explain to Link what you are trying to accomplish and Link creates a focused prompt for the agent to use). Include details that are specific to your business, such as "Staff must wear a hairnet in the kitchen."

For more tips on writing effective instructions, see [Agents: Prompting Best Practices](https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-prompting-best-practices.md).

### Schedule

Choose when the agent runs. The following options are available:

* **Every day**: The agent runs every day.
* **Every week**: The agent runs on the days you select. You can set different hours for each day, or select **Copy to all** to use the same hours every day.
* **Based on location hours**: The agent runs **During open hours** or **During closed hours** of each location. The agent uses the business hours that are set for each location in **Location Management**.
* **On event**: The agent runs when a new event, for example a motion, agent, or vision analytics event, is added to a saved report that you select (**From a report**). It can also run when a new event fits filters that you set (**Custom filters**). See [Run an Agent on Events](#run-an-agent-on-events).

**Important:** If a location has no business hours, an agent with the **Based on location hours** schedule does not run at that location. Solink does not show an error. Before you use this schedule, make sure that each location has business hours. For more information, see [Set Business Hours](https://help.solink.com/docs/manage-users-locations-and-your-account/location-management-location-tags.md#set-business-hours).

For scheduled agents, use **Repeat every** to set how often the agent checks. You can choose **Once**, a number of **Minutes**, or a number of **Hours**, and you can limit checks to a time window with **Between**. **Note**: The higher the frequency of checks, the more agent hours will be used.

If the agent analyzes video, choose how many seconds of video it reviews at each check.

**Note**: An agent that runs **On event** starts soon after a matching event reaches Solink. If an event reaches Solink late, the agent also runs late.

#### Run an Agent on Events

To run the agent each time a new event happens, set **Runs** to **On event**. Then decide which type of event will trigger the agent. For example, you can set the agent to run each time a camera at your back door records a motion event. You can set this in two ways:

* **From a report**: Use the filters of a report that you saved on the **Events** page. Each time a new event matches the report, the agent runs. In **Select a report**, select the report. To create a report, see [Save Your Searches (Create a Report)](https://help.solink.com/docs/understand-your-business/search-and-save-reports/search-and-filter-events.md#save-your-searches-create-a-report).

  <img src="https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-d0ab71f542c0294148cbf0e7c0b90222e7ad2470%2Fagents-schedule-on-event-from-a-report.png?alt=media" alt="The Schedule step, with Runs set to On event and From a report selected" width="560">
* **Custom filters**: Set the filters in the agent, without a report. Each time a new event matches your filters, the agent runs. Select the locations or a location tag, and then search or select **Add filter**. The filters work the same as on the **Events** page. For more information, see [Add Filter](https://help.solink.com/docs/understand-your-business/search-and-save-reports/search-and-filter-events.md#add-filter).

  <img src="https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-07b32b5bb77bfad62c68ea794f4f02b8d26a1c54%2Fagents-schedule-on-event-custom-filters.png?alt=media" alt="The Schedule step, with Runs set to On event and Custom filters selected" width="560">

After you select a report or add filters, the step shows the events from the past 7 days that match. These are examples of the events that would have triggered the agent, so you can check that your report or filters are right. It also shows the **Expected volume**: about how many matching events there are per day, per week, and per month, from the average of the past 14 days. Use it to estimate how often the agent will run.

Then set what the agent reviews for each event:

* If **Detection** is set to **Image**, use **Snapshot timing** to choose when the agent takes its image. In **Capture**, type a number of seconds, select **seconds before** or **seconds after**, and select **Event start** or **Event end**.
* If **Detection** is set to **Video**, set **Pre-roll** (the seconds of video before the event), **Post-roll** (the seconds of video after the event ends), and **Clip limit** (the maximum clip length, from 15 to 300 seconds).

### Cameras

Select the locations or specific cameras for the agent to monitor. To monitor every camera at a location, select the location. To monitor only some cameras, expand the location and select the cameras.

**Note**: An agent can monitor any number of cameras. However, if **Detection** is set to **Video** and **Analysis grouping** is set to **Site**, the agent reviews all the cameras at a location together, and you can select up to 10 cameras at each location.

### Detection

Choose how the agent reviews footage for analysis. The following options are available:

* **Image**: Analyzes still images from your cameras. Faster and more cost-efficient.
* **Video**: Analyzes video clips from your cameras. Better for detecting motion and sequences.

### Event Structure

Choose what information the agent adds to each event it creates. Each row is one output field. To add a field, select **Add Output**.

<img src="https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-daa23b1eecf9852d44af50baa0f80a3335ebad36%2Fagents-event-structure-step.png?alt=media" alt="The Event structure step, with one output field and the Add Output button" width="560">

For each output field, set the following:

* **Output**: The name of the field on the event card. Use a short name that tells what the answer is, for example "Hard hat worn" or "Queue length". Give each field a different name.
* **Type**: The kind of answer the agent gives:
  * **Yes / No**: A "Yes" or "No" answer. For example, "Is the back door open?"
  * **Duration**: An amount of time. For example, "How long did the customer wait to be greeted?"
  * **Single Select**: One answer from a list you provide. For example, "What type of vehicle is in the drive-thru? Minivan, SUV, Sedan, or Other."
  * **Numerical**: A count. For example, "How many customers are in the queue?"
  * **Percentage**: An estimated percentage. For example, "How full is the donut display?"
  * **Text**: A written description. For example, "Describe the customer's interaction with the display."
* **Description**: The question or instruction that goes with the field.

You can create reports and dashboards from these fields. For more information, see [Agent Events](https://help.solink.com/docs/understand-your-business/ai-features/agents/agent-events.md).

### Actions

Actions decide how you find out about what the agent sees.

Each time the agent checks your cameras, Solink saves the result as an event. You can look at these events in Solink at any time. This is the **Event** action. It is always on, and you cannot turn it off.

If you do not want to keep checking Solink yourself, turn on an action that tells you. For example, a store manager can get a text message when the back door is left open after closing. Each action has its own toggle on the **Actions** step:

![Actions step with the Event, Email, Push Notification, SMS, VerifEye Event, and Webhook actions](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-e48e91f3bad3f15338dee88717e5b0575d98849f%2Fagents-actions-step.png?alt=media)

You can turn on the following actions (select the toggle icon):

* **Email**: Sends an email to the people you choose. The email has a link to the video. See [Email, SMS, and Push Notification](#email-sms-and-push-notification).
* **SMS**: Sends a text message to the phones of the people you choose. See [Email, SMS, and Push Notification](#email-sms-and-push-notification).
* **Push Notification**: Shows an alert on the phones of the people you choose, in the Solink mobile app. The alert also shows in the Solink web app. See [Email, SMS, and Push Notification](#email-sms-and-push-notification).
* **VerifEye Event**: Sends the video to the **VerifEye** section of the Solink app for a person to review. To set the questions that the reviewer must answer, for example "Was this a theft?", create an Event Flow for the agent. See [VerifEye Event](#verifeye-event).
* **Webhook**: Sends agent results to other tools that your company uses. To reach Slack or PagerDuty, use a tool such as Zapier. Your IT team usually sets this up. See [Webhook](#webhook).

**Tip**: Most people only want to hear about problems, not about every check. When you turn on **Email**, **SMS**, or **Push Notification**, use **When** to send it only when the agent finds the problem. Link usually sets this for you.

#### Email, SMS, and Push Notification

These three actions have the same settings. To see the settings, select **Email**, **SMS**, or **Push Notification**:

![Email action settings with Goes to, Message, When, and How often](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-72e42fc349940a3aa971d96ca417bcf5ebae6270%2Fagents-action-email-settings.png?alt=media)

To choose who gets a notification:

1. Select **Email**, **SMS**, or **Push Notification**. The settings for the action open.
2. Next to **Goes to**, select **Add recipients**. The recipients panel opens.
3. Select a tab: **Users**, **User Roles**, **Locations**, or **Location Groups**.
4. Select each recipient. To find a recipient, type a name in **Search**.
5. Select **Confirm**.

A user who has no email address does not show in the list for **Email**. A user who has no phone number does not show in the list for **SMS**. Users in a role, location, or location group get the notification only if they have access to the location of the event.

The agent uses a default message. To change the message:

1. Next to **Message**, select **Default template**. The template panel opens.
2. Edit the subject line or title, and the body.
3. Optional: To add event details, such as the location name, select **Insert** and then select a variable. Variables show in \[square brackets].
4. Optional: To see the message with sample data, select the **Preview** tab.
5. Select **Save**.

After you save, the **Message** button shows the custom message instead of **Default template**.

If **When** has no conditions, the agent sends a notification after every check, not only for flagged events. Link usually adds a condition on the agent's **Yes / No** answer, so that the notification goes out only for flagged events. To send a notification only in certain cases:

1. Next to **When**, select **Only in certain cases**.
2. Select an output field from the agent's event structure. To describe the case in your own words, select **Something else**.
3. Select a condition, such as **is** or **isn't**, and a value, such as **Yes**. If you selected **Something else**, type a description. For example, "someone leaves through the fire exit."
4. Optional: To add one more condition, select **And**. The agent sends the notification only when all conditions are true.

**Tip**: To send fewer notifications, select a time in **How often**. The default is **As often as it matches**, which sends a notification every time the **When** conditions are true. However if you select a time, the agent sends no more than one notification in that time. For example, "at most one per camera every 30 minutes".

#### VerifEye Event

The **VerifEye Event** action adds the agent's event to an Event Flow for a person to further review it. For more information on configuring Event Flows, see [Event Flow](https://help.solink.com/docs/review-events-and-save-evidence/events/event-flow.md).

To see the settings, select **VerifEye Event**:

![VerifEye Event action settings with the Event Flow list and the New Event Flow button](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-20a177772faac6a5e43cf7b716e38d3394cb992a%2Fagents-action-verifeye-event-settings.png?alt=media)

To send events to an Event Flow:

1. Select **VerifEye Event**. The settings for the action open.
2. In **Event Flow**, select an Event Flow.

To create a new Event Flow, select **New Event Flow**. The **Event Flow** page opens in a new tab. After you save the new Event Flow, come back to the agent and select it in **Event Flow**.

#### Webhook

A webhook sends agent results to the other tools that your company already uses. Use it to:

* **Connect to other apps**: Send results to a tool such as Zapier. Zapier can then post to Slack or Microsoft Teams, open a PagerDuty alert, create a ticket, or add a row to a spreadsheet. Solink does not connect to Slack or PagerDuty directly, so this is how you get agent alerts in them.
* **Feed your own systems**: Your IT team can send agent results to your own ticket, report, or database tools.
* **Keep a full history**: The webhook sends the result of every check, not only the flagged events. This gives you a full record for audits and reports.

For example, a restaurant group has an agent that checks if the back door is open after closing, at 40 stores. The webhook sends the results to Zapier. When the agent finds an open door, Zapier posts a message in the #facilities Slack channel, with the store, the camera, the time, and a link to the video. Zapier also adds each check to a spreadsheet, which the group uses for a weekly report.

To see the settings, select **Webhook**:

![Webhook action settings with the Webhook Endpoint list and the Register New Webhook button](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-afd9606d8a88cf25461380cbcd3d10d0234fbaa2%2Fagents-action-webhook-settings.png?alt=media)

To use a webhook that is already registered:

1. Select **Webhook**. The settings for the action open.
2. In **Webhook Endpoint**, select the webhook.

To register a new webhook:

1. Select **Register New Webhook**.
2. In **Name**, type a name for the webhook. For example, "Zapier".
3. In **URL (HTTPS)**, type the URL of the endpoint. For example, `https://example.com/webhooks/solink`.
4. Select **Register**. Solink selects the new webhook for this agent.
5. Copy the signing secret. Solink shows the secret only one time.

After you register the webhook, Solink checks the URL. If the endpoint answers, Solink shows **Endpoint is active**. If the endpoint does not answer, Solink shows a warning. Solink keeps the webhook, but deliveries can fail until the endpoint is online.

To delete a webhook, select the trash icon next to its URL, and then select **Delete**. Any agent that uses the webhook stops sending events to it.

##### Technical Details for IT Teams

After each check, Solink sends an HTTPS `POST` request to the URL with a JSON body. A webhook has no **When** conditions. To keep only the flagged events, filter on the **Yes / No** answer in the output fields. The body includes the following data:

* The location name and ID.
* The cameras that saw the event.
* The event time.
* The event summary and description.
* The agent's confidence.
* The agent's output fields from the event structure.
* The event ID and a link to the event in Solink.

The URL must use HTTPS. Solink does not accept a URL that goes to a private or reserved IP address.

Your system can use the signing secret to make sure that each request comes from Solink. Solink signs each request with the [Standard Webhooks](https://www.standardwebhooks.com/) format, in the `webhook-id`, `webhook-timestamp`, and `webhook-signature` headers.

If a delivery fails because of a network error, a server error, or a rate limit, Solink tries again up to 7 times. If 25 deliveries in a row fail, Solink disables the webhook, and the webhook shows **(Disabled)** in the list.

### Tuning

Tuning makes the agent's answers more accurate before it runs on its own. You look at real events from the past week, and you check the answers that the agent gave for each event. When an answer is wrong, you correct it. This is called tagging.

For example, an agent checks if the back door is open. On one event, the agent answers **Yes**, but the video shows a closed door. You change the answer to **No**. When you finish, the agent uses your corrections to learn and improve its configuration to better match your use cases.

Link asks about tuning in the chat. You can also open the **Tuning** step in **Guided setup**:

![Tuning step with the Tag a few events and Continue without tagging options](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-33989458fd060916858757fc4612b3e90b54e49a%2Fagents-tuning-step.png?alt=media)

The following options are available:

* **Tag a few events** (**Recommended**): Tag events from the past week before the agent runs on its own.
* **Continue without tagging**: The agent starts without tuning. You can tag events and tune it at any time.

To tag events and tune the agent:

1. Select **Tag a few events**.
2. Select **Continue**. The **Tune the agent** window opens and loads real events from the past week.
3. Watch the video, and read **What the agent saw**.
4. Check the agent's answer for each output field. If an answer is wrong, change it. For example, change **Yes** to **No**.
5. Optional: In **Notes**, type anything else the agent should know about this event.
6. Select **Confirm and continue**. If you changed answers, the button shows the number of changes. For example, **Confirm 2 changes and continue**. The next event opens.
7. After you tag every event, select **Finish and tune the agent**.

The agent uses your answers to adjust how it decides. The top of the window shows your progress, for example "Event 3 of 12 · about 3 minutes left". Each event takes about 20 seconds.

The window also has these controls:

* **Event strip**: Select an event below the video to go to it. You can also use the left and right arrow keys.
* **Remove**: Removes an event that is not useful for tuning. This button shows only if you have permission to edit the agent.
* **Load more**: Shows on the last event. Loads more events to tag.

To tune the agent later, go to the **Agents** page, select the agent, and then select the **Tuning** tab. If the tab shows **Enable tuning**, select it first. Tag at least 10 events, and then select **Schedule tuning**. Solink tunes the agent overnight, so you see the better accuracy the next day.

**Note**: The **Tuning** tab shows only for agents that you build with Link, that have a schedule, and that are enabled.

**Note**: If no events from the past week fit the schedule, the window shows **No examples to review yet**. Select **Find examples** to search again. Tuning is optional, so you can also close the window and continue without it. If the events do not load, the window shows **Examples did not load**. Select **Try again**.

### Settings

Enter a name for the agent in **What do you want to call your agent?**.

## Save the Agent

Select **Save Agent** to create the agent. If **Save Agent** is not available, hover over it to see what is missing. For example, "On Cameras, pick at least one camera or site to monitor."

**Save Agent** is also not available if your organization does not have enough agent hours. To keep your work, you can still save the agent in the disabled state to retain all settings, but it will not run until you have more agent hours. When the agent is over your hours, Link asks what you want to do: save it in the disabled state, use fewer cameras, or use a shorter schedule. Contact your Solink representative to add hours, and then enable the agent. For more information, see [Agent Hours](https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-getting-started.md#agent-hours-credits).

## Create an Agent with the Classic Setup

Certain agents are currently restricted to the classic setup workflow:

* **Overnight Guard**
* **Precise Store Opening**
* **Precise Store Closing**
* **Loss Prevention**

When configuring these agents, you must follow the workflow outlined below:

1. On the **Agents** page, select **View templates**.
2. Select one of these agents.

### Agent Name (Optional)

You can rename the agent in the Agent Description section. You can also leave the default name as is.

![](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-1198999806bfa0ae5df59933de0b913b9b898494%2Fd2e8306f705a5720.png?alt=media)

### Agent Skills

Skills define exactly what activity the agent should flag. Each agent has its own unique set of activity it monitors for.

All skills are selected by default, but if you do not want an agent to monitor for a specific activity you can deselect any of the selected skills.

**Note**: Deselecting skills can sometimes help reduce the AI quota the agent uses.

You can also provide more guidance in the **Additional Context** box in the Skills section. Add information to the **Additional Context** field to help the agent understand certain terms or situations relevant and/or unique to your business, such as "The pickup shelf is the white shelf next to the front counter. Orders should not stay on the shelf for more than 10 minutes."

### Agent Schedule

Depending on the agent, you can configure how frequently the agent runs based on a schedule.

**Scheduling: Video Monitoring Agents**

Schedules can be configured such that the agent monitors cameras on an interval (for instance, every 5 minutes). This is recommended for use cases requiring spot checks.

![](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-5617db3625cadfd9e6997613658fe1fc3cba259e%2F8ea2261b01234cfd.png?alt=media)

**Scheduling: Transaction & Video Monitoring Agents**

Some agents, such as the Loss Prevention Agent, monitor both video transactions and transaction data.

Schedules for these agents are **system defined** based on when transactions become available in Solink. By default, the schedule is set to run daily at 5 AM and fetch transactions from up to 3 days in the past; you can review these events once they are fetched via the Agent Logs section (see [Agent Logs](https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-performance-insights-and-settings-agent-dashboard.md#logs-tab)) or sent via a notification (see [Choose Agent Action](#agent-action-notifications)).

### Monitored Areas

Select specific locations you want this agent to monitor.

If you do not want the agent to monitor all cameras at a given location, you can expand the location in the location selection window and select/remove cameras:

![](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-b9f4824441b117a645a52158d591c255ed9dad2d%2F54c681026172e02e.png?alt=media)

Select **Save Selection** once you have selected the locations and/or cameras you want the agent to monitor.

### Confidence Threshold

The **Confidence Threshold** allows you to fine-tune the level of activity the agent monitors for. You may need to re-visit this setting after the agent has been deployed if you find the agent is capturing too much or not enough activity of interest.

The **lower** the threshold, the more activity the agent will flag. For instance, if the agent monitors for suspicious activity, the agent may flag whenever someone wearing a hoodie sweater appears in the video.

The **higher** the threshold, the less activity the agent will flag. For instance, if the agent monitors for suspicious activity during closed store hours, the agent may only flag whenever there is a clear threat to person or property, such as a forced entry, shattered window, etc.

It is recommended to start at the **Medium** Confidence Threshold option and re-adjust the agent later if needed.

### Event Structure

In this step, you choose when the agent creates an event, and what information each event shows.

Under **Event creation**, choose when the agent creates an event. The following options are available:

* **Every time it runs**: The agent creates an event after every check, even when it finds nothing. For example, an agent that checks every four hours between 9 AM and 5 PM creates an event at each check.
* **When it finds a match**: The agent creates an event only when it sees one of the activities that you selected in **Agent Skills**. For example, a back door security agent creates an event only when it sees an open back door. Checks that find none of the activities do not create an event.
* **Only in certain cases**: The agent creates an event only when something that you describe happens. In **Conditions**, type the cases in your own words. For example, "Only when someone enters the restricted zone."

**Note**: Not every option shows for every agent. **When it finds a match** shows only for agents that have skills. **Every time it runs** does not show for an agent that runs on a daily or weekly schedule without a repeat.

To add an output, select **Add Output**. For each output, set the following:

* **Output**: The name of the field on the event card. Use a short name that tells what the answer is, for example "Hard hat worn" or "Queue length". Give each field a different name.
* **Type**: The kind of answer the agent gives:
  * **Yes / No**: A "Yes" or "No" answer. For example, "Is the back door open?"
  * **Duration**: An amount of time. For example, "How long did it take an employee to greet the customer?"
  * **Single Select**: One answer from a list you provide. For example, "What type of car came through the drive-thru? Minivan, SUV, Sedan, or Other."
  * **Numerical**: A count. For example, "How many customers are in the queue?"
  * **Percentage**: An estimated percentage. For example, "How full is the donut display?"
  * **Text**: A written description. For example, "Describe the customer's interaction with the display."
* **Description**: The question or instruction that goes with the field.

![](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-97d1d0d128c7913bff01704f4cd8d90f8fd087b2%2Fa337272081ee81f1.png?alt=media)

You can create reports from your agent events and then build out a dashboard of agent insights/analytics. See [Agent Events](https://help.solink.com/docs/understand-your-business/ai-features/agents/agent-events.md) for more information.

### Agent Action (Notifications)

Select one or more actions to determine how the agent notifies you and/or other Solink users when the agent identifies activity of interest.

You can select no actions if you want to simply restrict agent responses to events and the [Agent Logs](https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-performance-insights-and-settings-agent-dashboard.md#logs-tab), or you can select one or more actions if you wish to enable other notification methods, such as SMS or Email.

### Publish Agent

Once you have finished customizing your agent, select **Publish** to create the agent:

![](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-4495e6e7f3ba64909b68e49c980e55a079bf3d92%2Fa42c0f9f77477666.png?alt=media)

You can view and edit the agent from the main **Agents** page once published. More information about viewing and editing your existing agents is outlined below.

***

## View Created Agents

You can view and edit agents you have created at the bottom of the main **Agents** page.

You can also sort by:

* Recently created agents
* Agent name

For a full view of all agents, select **My agents**:

![](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-40bec72a5809aeca31b6e7a522f87ce2bd3ce9a0%2F85fe020906042bd0.png?alt=media)

The agents list shows:

* **Agent Name**: The name of the agent.
* **Monitored Areas**: The number of cameras and locations that the agent monitors. For example, "3 Cameras, 2 Locations".
* **Status**: **Active** if the agent is enabled, or **Inactive** if it is disabled. If you turn on **Show recently deleted**, agents deleted this month show **Deleted**. See [Disable/Re-Enable Agents](#disable-re-enable-agents) for more information.
* **Created by**: The user who created the agent.
* **Analysis Mode**: The type of content that the agent reviews, such as image, video, or transaction.
* **Schedule Type**: When the agent runs: **Daily**, **Weekly**, or **Event-based**.
* **Last Activity**: How long ago the agent last ran.
* **Last Detection**: How long ago the agent last detected the activity that it monitors for.
* **Used This Month**: The [agent hours](https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-getting-started.md#agent-hours-credits) that the agent used this month.
* **Total Monthly Estimate**: The agent hours that the agent is estimated to use this month.

<img src="https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-5f5d3ba95d66f666703e6cf11ecb47a8ab21b7a4%2Fagents-my-agents-list.png?alt=media" alt="The My Agents page, with the Agent Usage bar and the list of agents" width="560">

***

## Edit Agents

You can perform a few actions to edit agents. Select the **My agents** button to start editing your agents.

![](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-63a7f951e2328782fe9bda1f01826873f9bff2db%2Fb5ba169478e5f597.png?alt=media)

### Edit an Agent

To edit an agent:

1. On the **My Agents** page, select the **More Actions** icon (three dots) next to the agent.
2. Select **Edit**.

You can also open the agent, select the **Settings** tab, then select the edit icon (pencil) next to **Agent Setup**.

Agents that you built with Link open in Link. The right panel shows **Guided edit** and the number of unsaved changes. Each changed step shows the old setting crossed out above the new one. When you finish, select **Save Agent**.

Agents that use the classic setup open in the classic setup.

### Disable/Re-Enable Agents

You can disable an agent to stop the agent from running without completely deleting it.

To disable an agent:

1. From the **My Agents** page, select the **More Actions** icon (three dots) next to the agent you want to disable.
2. Select **Disable** to immediately disable the agent.

![](https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-cd79a2597e83d44a3cdb1bd4272ca24d8202eaeb%2F0b741201b41036ff.png?alt=media)

You can also re-enable a disabled agent. Repeat the steps above and instead select **Enable**.

To disable or enable many agents at the same time, see [Select and Update Multiple Agents](#select-and-update-multiple-agents).

### Delete Agents

To delete an agent:

1. From the **My Agents** page, select the More Actions icon (three dots) next to the agent you wish to delete.
2. Select **Delete**.
3. Confirm deletion in the next window.

To delete many agents at the same time, see [Select and Update Multiple Agents](#select-and-update-multiple-agents). To restore an agent that you deleted this month, see [Restore a Deleted Agent](#restore-a-deleted-agent).

### Select and Update Multiple Agents

You can disable, enable, or delete many agents at the same time.

To select agents on the **My Agents** page, do one of the following:

* Select the checkbox next to each agent.
* To select all the agents on the page, select the checkbox at the top of the list.
* To add or remove one agent, Ctrl-click the agent (Cmd-click on Mac). To select a range of agents, Shift-click.

<img src="https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-99aa0ee44a7919bc64040a7793043f173c73875f%2Fagents-select-all-checkbox.png?alt=media" alt="The My Agents list, with the checkbox that selects all agents" width="560">

A bar at the top of the list shows the number of selected agents and these buttons:

* **Disable**: Turns off the selected agents that are on.
* **Enable**: Turns on the selected agents. This button shows only when all the selected agents are off.
* **Delete**: Deletes the selected agents.
* **Clear**: Clears the selection.

Solink asks you to confirm before it disables, enables, or deletes the agents.

<img src="https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-648f7ff7c3197256cf75c5576e5bddf9f9918c06%2Fagents-bulk-selection-bar.png?alt=media" alt="Four selected agents, with the Clear, Disable, and Delete buttons" width="560">

**Note**: The checkboxes show only if you have permission to edit or delete agents. You cannot select a deleted agent.

### Restore a Deleted Agent

You can restore an agent that you deleted this month.

To restore a deleted agent:

1. On the **My Agents** page, turn on **Show recently deleted**.

   <img src="https://1562067156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMN1EUQcXYfv7FYpGJWR%2Fuploads%2Fgit-blob-2db8ae913f67ba2ddeb6dfb57db73124d2d0ba3f%2Fagents-show-recently-deleted.png?alt=media" alt="The Show recently deleted switch next to the Create New Agent button" width="400">
2. Select the **More Actions** icon (three dots) next to the agent.
3. Select **Restore**.

### Duplicate Agents

You can create a duplicate of an existing agent. To duplicate:

1. From the **My Agents** page, select More Actions icon (three dots) next to the agent you wish to duplicate.
2. Select **Duplicate.**


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.solink.com/docs/understand-your-business/ai-features/agents/agents-create-and-configure.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
