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

# Run Tasks with the Global Agent

> Start a task with the Merlin AI Global Agent, attach files, monitor the run, and review the output files the agent produces.

> [!NOTE]
>
> Prerequisites
>
> Before you begin, ensure:
>
> * Your workspace has access to the Global Agent. For more information, refer to [Global Agent: Overview](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/global-agent/global-agent-overview.md#availability).
> * You have access to the MoEngage data your request depends on, such as campaigns, segments, or analytics.

## Start a Task

**1. Open the composer**

Hover over **Merlin AI** in the left menu and click **Home**, or click **New task** to open the composer directly.

**2. Select the agent**

Click **Select agent** and choose **Global agent**. Every task runs on one agent, so select the agent before the task starts.

**3. Select a mode**

Choose **Fast**, **Balanced**, or **Expert**. **Balanced** is the default mode, and the mode locks once the task starts, so to use a different mode, start a new task.

The Global Agent sets the mode for each task. A Custom Agent sets the mode on the agent instead, so the control does not appear when you select a Custom Agent before the task starts. After the task starts, the control shows the agent's mode and stays locked.

**4. Describe the work**

Write what you want in plain language, and then send the message.

![The task composer with the Select agent control and the Balanced mode control highlighted below the message box](https://mintcdn.com/moengage/JAFXRotswrETmyF0/images/global-agent-new-task-composer.png?fit=max\&auto=format\&n=JAFXRotswrETmyF0\&q=85\&s=f367531c4cb8a49a1f05325951496804)

Each task is a separate conversation. The agent keeps every instruction, tool result, and generated file from the task. You build on your request turn by turn, and the agent carries the earlier detail forward.

State the outcome you want, the time window, and the channels or campaigns involved. The agent asks you for any missing detail.

> [!NOTE]
>
> The first message starts the run: the agent begins work as soon as the message arrives.

### Parts of a Task View

![An open Global Agent task with eight numbered callouts marking the breadcrumb, the Visible to workspace switch, the Output files icon, the task menu, the Finished working line, the notification banner, the composer, and the My tasks and Workspace tasks tabs](https://mintcdn.com/moengage/JAFXRotswrETmyF0/images/global-agent-task-view.png?fit=max\&auto=format\&n=JAFXRotswrETmyF0\&q=85\&s=7677e37766a519b8cab929c23ad2532c)

1. **Agent and task name.** The breadcrumb names the agent the task runs on, followed by the task name. To change the name, refer to [Rename a Task](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/global-agent/manage-and-share-global-agent-tasks.md#rename-a-task).
2. **Visible to workspace.** Switches whether your colleagues find the task under **Workspace tasks**. For more information, refer to [Change Task Visibility](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/global-agent/manage-and-share-global-agent-tasks.md#change-task-visibility).
3. **Output files.** Opens the panel that lists every file the run produced. For more information, refer to [Review Task Outputs](#review-task-outputs).
4. **Task menu.** Pins, renames, copies a link to, and archives the task. For more information, refer to [Task Menu](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/global-agent/manage-and-share-global-agent-tasks.md#task-menu).
5. **Finished working.** Expands the steps the agent took, including any error the agent encountered.
6. **Notification banner.** Turns on a browser notification for when the task finishes. For more information, refer to [Notifications](#notifications).
7. **Composer.** Sends your next message in the same task. The agent picker and the mode control sit below the message box.
8. **My tasks and Workspace tasks.** Switches the **Recent tasks** list between your own tasks and the tasks shared with your workspace. For more information, refer to [Recent Tasks](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/global-agent/manage-and-share-global-agent-tasks.md#recent-tasks).

### Example: Improving Day 1 Retention

The following walkthrough shows how a task develops across four turns. The values are illustrative.

| Turn | You ask | The agent does | You get |
| :- | :- | :- | :- |
| 1 | "Analyze user retention over the last 15 days." | Runs a retention analysis across the window and breaks the numbers down by day | A retention curve for the period, with the drop-off at each day |
| 2 | "Why is Day 1 retention only 6.5%?" | Compares the users who returned on Day 1 against the users who did not, across onboarding steps, first-session activity, and channel reachability | The points where the two groups diverge, with the figures behind each point |
| 3 | "What should we be aiming for, and what would move the number?" | Sets out the levers that affect Day 1 retention, such as onboarding completion and push opt-in, and asks which target you want to work toward | A set of target options, and the levers ranked for your app |
| 4 | "Map the onboarding lever to work we can run." | Works back from the target you chose to the change that closes the gap, then builds the segment and writes a push draft for the users who stall | The change to make, a saved segment, and a campaign draft you open in the campaign builder |

![A Global Agent task named User retention analysis, last 15 days, showing the retention table with Day 1 at 6.5 percent, the diagnosis beneath it, and the target options the agent offers](https://mintcdn.com/moengage/STnKC2K1jQ997sCD/images/examplescenario.gif?s=9149b498cc88021721b791d162167b1a)

Each turn builds on the previous turn, so you refine the question rather than restating the background. Publishing the draft stays a step you complete in the campaign builder.

## Attach Files to a Task

Select the plus icon in the composer to attach files to any message, including the first message. The agent reads each attachment as part of the same turn. Send a CSV of campaign IDs or a brand guideline document, and the agent works from the attached file.

| Limit | Value |
| :- | :- |
| **Files per message** | 5 |
| **Size per file** | 5 MB |
| **Accepted formats** | .csv, .doc, .docx, .gif, .jpeg, .jpg, .json, .md, .pdf, .png, .txt, .webp, .xls, .xlsx |

## Monitor a Running Task

Tasks run in the background. The run continues while you work elsewhere in the dashboard, and you return to the task at any time.

The left pane and the **All tasks** page mark each task with its state:

* A running task shows a pulsing dot.
* An unread task shows an orange dot.
* The orange dot clears when you open the task, and returns when the task updates.
* A task that is both running and unread shows the pulsing dot.

### Notifications

A long task often finishes while you are working elsewhere. The hub raises a browser notification when the agent stops.

**1. Open Notification settings**

Select the notification icon beside **Merlin AI Agents**.

**2. Ask your browser for permission**

Select **System notification when a task finishes while I'm away**, and click **Save**. Your browser then asks for permission.

A task counts as finished when the agent stops working on the task, whether the agent produced a result, failed, or stopped to ask you a question. The notification appears only while the dashboard is open in a tab and you are working in another tab or window.

> [!NOTE]
>
> Permission belongs to your browser rather than to MoEngage. Once you grant permission, the option stays selected, and you turn notifications off by blocking notifications for the site in your browser settings.

This setting covers browser notifications only. Emails, such as the email a scheduled run sends to the agent's creator, arrive independently of this setting.

### Control a Running Task

While the agent works, select **Stop response** to end the run. A message you send in the meantime waits in a queue that you pause, add to, delete from, or resume. Only the task owner stops a run.

### All Tasks Columns

For the full history, click **View all** next to **Recent tasks**. The **All tasks** page lists every task with the following columns:

| Column | Description |
| :- | :- |
| **Task name** | The title of the task, which the task owner renames at any time. A scheduled run is titled with the agent's name and the run's scheduled time in UTC. |
| **Agent** | The agent that runs the task. |
| **Run by** | The user who starts the task. A scheduled run shows no user. |
| **Run date** | The date and time the run starts. |
| **Trigger** | **Manual (Live)** or **Scheduled**. Global Agent tasks are always **Manual (Live)**, and **Scheduled** applies to Custom Agent runs. |

When a scheduled run finishes or fails, MoEngage emails the agent's creator the run's outcome, Task ID, run date, duration, and next run time. The email leaves out the run's output. The creator turns the email off with the **Email** toggle on the agent. For more information, refer to [Custom Agents: Overview](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/custom-agents/custom-agents-overview.md).

To filter, pin, rename, or archive the tasks in this list, refer to [Manage and Share Global Agent Tasks](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/global-agent/manage-and-share-global-agent-tasks.md).

## Resume a Task

To continue a task you started earlier:

1. Open the task from the task list.
2. Send another message.

The agent keeps the earlier conversation, tool results, and generated files, and continues from where the previous turn ended.

You resume the manual tasks that you start. A colleague's task is view only, and so are your own scheduled and test runs. A notice replaces the message box on those tasks, and **Start a new task** carries the work forward. For what you do on a colleague's task, refer to [Open a Task](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/global-agent/manage-and-share-global-agent-tasks.md#open-a-task).

A task stays resumable for 30 days after its last activity. After 30 days, the task stays readable, and you start a new task to continue the work. An archived task opens once you restore the task, and a task leaves the task lists once its Custom Agent is deleted.

## Review Task Outputs

The task collects every file the agent produces during a run. Select **Output files** in the task header to open the panel, which lists each file with its format and size. Download a file from the panel, or from the card in the transcript where the agent produced the file.

Select a file to review the contents before you save a copy. How a file opens depends on the file format:

* **Images and PDFs:** PNG, JPG, GIF, WebP, and PDF files open in the preview pane. A download button sits beside the preview.
* **Text files:** Markdown, plain text, log, and JSON files also open in the preview pane. A file larger than 2 MB downloads instead.
* **Office and spreadsheet files:** .docx, .xlsx, .pptx, and CSV files download directly. Open each file in the matching application to review the contents.

A marker on **Output files** shows when new files arrive. From the preview, select **Download**, or **Open in new tab** for PDFs, images, markdown, text, and JSON files.

The agent writes .docx by default, and produces a PDF when you ask for a PDF.

## Global Agent Memory

The Global Agent reads and writes two memory stores, and your workspace shares both:

* **Workspace memory:** Facts stored once for your workspace. Your Custom Agents use this store as well.
* **Global Agent memory:** Facts the Global Agent keeps for its own use, shared by every user in your workspace.

Any task can write to both stores, including a task you keep private. You cannot view, edit, or clear either store.

> [!WARNING]
>
> Memory is shared across your workspace. Anything the agent records in one task is readable by colleagues in their own tasks, so treat memory as workspace knowledge rather than a private note.

Memory holds what stays true between tasks. The agent looks up live figures, such as campaign status, audience counts, and performance numbers, each time you ask. Verify any figure that drives a decision.

## Permissions and Safeguards

Each task has one owner. The owner sends every message in the task, and colleagues read a shared task without continuing the conversation.

For what the agent writes to your workspace, the steps that stay with you, and the workspace a task reads from, refer to [Permissions and Safeguards](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/global-agent/global-agent-overview.md#permissions-and-safeguards).

## Next Steps

> **[Manage and Share Tasks](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/global-agent/manage-and-share-global-agent-tasks.md)**
>
> Filter the task list, pin and rename a task, control who sees a task, and archive the tasks you no longer need.

> **[Review What the Agent Covers](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/global-agent/global-agent-overview.md#capabilities-and-use-cases)**
>
> See the categories of work the Global Agent handles, from audience sizing to pre-send checks.

> **[Build a Custom Agent](https://moengage.com/docs/user-guide/ai-and-intelligence/merlin-ai/custom-agents/custom-agents-overview.md)**
>
> Turn a job you repeat into an agent with its own instructions, tools, and schedule.


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