> ## Documentation Index
> Fetch the complete documentation index at: https://dify-6c0370d8-release-1-14.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Collaborate with Teammates

> Edit workflows with teammates in real time and discuss design decisions through in-canvas comments

Building a workflow sometimes takes more than one person: a prompt engineer tuning instructions, a domain expert validating logic, a reviewer flagging edge cases.

Rather than taking turns, you can edit the same workflow alongside your teammates and leave comments directly on the canvas, so the discussion stays with the work.

<Tip>
  Comments and collaborator cursors can be hidden from the zoom menu in the bottom-right corner of the canvas.

  <Frame>
    <img src="https://mintcdn.com/dify-6c0370d8-release-1-14/A_WYV3glqHYhxXIh/images/use-dify/workflow/hide-comments-collaborator-cursor.png?fit=max&auto=format&n=A_WYV3glqHYhxXIh&q=85&s=cf52f0a0964af62eeeda7caee7f9d6be" alt="Hide Comments and Collaborator Cursors" width="1830" height="744" data-path="images/use-dify/workflow/hide-comments-collaborator-cursor.png" />
  </Frame>
</Tip>

## Real-Time Editing

Workspace members with editor permissions or above can edit the same workflow simultaneously. When two members change the same element at the same time, the last edit wins.

## Comments

Right-click an empty area of the canvas and select **Add Comment** to leave a note. To drop multiple comments in a row, press `C` to enter comment mode. Comments persist across workflow versions.

If you @mention a teammate in a comment, they'll receive an email notification.

Anyone with access to the app can read comments; adding, editing, or resolving requires editor permissions or above.

<Note>
  On self-hosted deployments, collaboration is turned off by default. Enable it by setting:

  * `ENABLE_COLLABORATION_MODE` = `true`
  * `SERVER_WORKER_CLASS` = `geventwebsocket.gunicorn.workers.GeventWebSocketWorker`
  * `NEXT_PUBLIC_SOCKET_URL` = your deployment's WebSocket URL (e.g., `wss://dify.example.com`)

  See [Environment Variables](/en/self-host/configuration/environments#enable_collaboration_mode) for details.
</Note>
