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

# Lesson 10: Publish and Monitor Your AI App

After building and tuning, your Email Assistant is now fully ready. It can read knowledge bases, use search tools, and generate beautifully formatted replies. But right now, it's still sitting inside your Dify Studio and only you can see it.

How do we share it with others? How do we know if it's working correctly when we aren't watching?

It's time for the final two critical steps: Publish and Monitor.

## Publish Your Application

1. Move your mouse to the top right corner of the canvas and click the **Publish** button. You'll see other buttons light up.

   <Note>
     Whenever you make changes to your workflow, you must click **Publish → Update** to save them.

     If you don't update, the live version will remain the old one.
   </Note>

   <Frame>
     <img src="https://mintcdn.com/dify-6c0370d8/W-660XSNevX1HYUo/images/use-dify/tutorial/workflow-101-lesson-10/publish.png?fit=max&auto=format&n=W-660XSNevX1HYUo&q=85&s=515bc221dc1541b82fc713b14944a52d" alt="Publish" width="840" height="942" data-path="images/use-dify/tutorial/workflow-101-lesson-10/publish.png" />
   </Frame>
2. Once published, the gray-out buttons turned clickable now.
   1. **Share Your App**

      Click **Run App**. Dify automatically generates a WebApp for you. This is a ready-to-use chat interface for your Email Assistant.

      You can send this URL to colleagues or friends. They don't need to log in to Dify to use the email assistant.

      <Frame>
        <img src="https://mintcdn.com/dify-6c0370d8/W-660XSNevX1HYUo/images/use-dify/tutorial/workflow-101-lesson-10/webapp.png?fit=max&auto=format&n=W-660XSNevX1HYUo&q=85&s=be8a8d4da3e065f5b9f1889ef3bae024" alt="WebApp" width="2940" height="1654" data-path="images/use-dify/tutorial/workflow-101-lesson-10/webapp.png" />
      </Frame>
   2. **Batch Run App**

      If you have 100 emails to reply, copying and pasting them one by one will drag you down.

      In Dify, all you need to do is to prepare a CSV file with the 100 emails. Upload it to Dify's Batch Run feature. Dify processes all 100 emails automatically and gives you back a spreadsheet with all the generated replies.

      Since we set specific variables (like `email_content`), your CSV must match that format. Dify provides a template you can download to make this easy.

      <Frame>
        <img src="https://mintcdn.com/dify-6c0370d8/W-660XSNevX1HYUo/images/use-dify/tutorial/workflow-101-lesson-10/download-template.png?fit=max&auto=format&n=W-660XSNevX1HYUo&q=85&s=12d2db2839cfbf51c2ee402d9b0ce28d" alt="Download Template" width="1198" height="860" data-path="images/use-dify/tutorial/workflow-101-lesson-10/download-template.png" />
      </Frame>
   3. **Others**
      * **Access API Reference**: If you know coding, you can get an API Key to integrate this workflow directly into your own website or mobile app
      * **Open in Explore**: Pin this app to your workspace sidebar for quick access next time
      * **Publish as a Tool**: Package your workflow as a plugin so other Agents can use your Email Assistant as a tool

## Monitor Your App

As the creator, you need to understand the status of this assistant. By monitoring and using logs, you can check the health, performance, and costs.

### The Command Center: Monitoring

Click **Monitoring** on the left sidebar to see how your app is performing.

| Name                   | Explanation                                                                          |
| :--------------------- | :----------------------------------------------------------------------------------- |
| Total Messages         | How many times users interacted with the AI today. It shows how popular your app is. |
| Active Users           | The number of unique people engaging with the AI.                                    |
| Token Usage            | How much tokens the AI used. Watch for sudden spikes to control costs.               |
| Avg. User Interactions | Do the users ask follow-up questions?                                                |

### The Magnifying Glass: Logs

Logs record the details of every single run: time, input, duration, and output. To access detailed records, click Logs in the left sidebar.

**Why Logs?**

* **Debugging**: User says *It doesn't work*? Check the logs to replay the *crime scene* and see exactly which node failed.
* **Performance**: See how long each node took. Find the blocker that is slowing things down.
* **Understand Users**: Read what users are actually asking. Use this real data to update your Knowledge Base or improve your Prompts.
* **Cost Control**: Check exactly how many tokens a specific run cost.

| Name                | Explanation                                                 |
| :------------------ | :---------------------------------------------------------- |
| Start Time          | The time when the workflow was triggered                    |
| Status              | Success or Failure.                                         |
| Run Time            | How long the whole process took.                            |
| Tokens              | The tokens consumed by this run.                            |
| End User or Account | The specific user ID or account that initiated the session. |
| Triggered By        | WebApp interface or called via API.                         |

You can click on each log entry to view more details. For example, you can identify frequently asked user questions and use them to timely update and modify your Knowledge Base.

Building AI app is a new starting point, and this is the core of **LLMOps** (Large language model operations).

1. **Observe**: Look at the Logs. What are users asking? Are they happy with the answers?
2. **Analyze**: Hallucination happens on certain questions or some tools run out often
3. **Optimize**: Go back to the Canvas. Edit the Prompt, add a document to the Knowledge Base, or tweak the workflow logic
4. **Publish**: Release the upgraded version

By repeating this cycle, your Email Assistant gets smarter and faster.

## Thank You

**Thank you for your time and you're now a Dify builder with a new way of thinking**:

```plaintext wrap theme={null}
Break down the task → Choose Nodes and Tools → Connect them with the right logic → Monitor and upgrade
```

Now, feel free to open a template in Dify explore. Break it down, analyze it, or start building a workflow that solves a task in your daily work from the scratch.

May your workload get lighter and your imagination goes higher. Happy building with Dify.
