UiPath Documentation
maestro
latest
false
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

Maestro ユーザー ガイド

Build a Slack notification workflow

What you'll build: A workflow that composes a dynamic Slack message from workflow data and sends it to a channel. You can attach this pattern to any trigger — a scheduled job, an incoming webhook, or an event from another system — to add real-time notifications to any automation.

必要なもの

  • A UiPath Automation Cloud account with access to Maestro Flow.
  • A Slack workspace where you have permission to add an app.
  • A Slack connection configured in Integration Service (UiPath's connector platform). To set it up, go to Integration Service in the UiPath Platform, find the Slack connector, and authorize it with your workspace.

Nodes used

  • Manual Trigger — starts the workflow on demand (replace with your real trigger later)
  • Script — composes the message text dynamically
  • Slack integration node — sends the message to a Slack channel

手順

1. Create a new Flow and add a trigger

  1. Open MaestroFlow and create a new workflow.
  2. Drag a Manual Trigger onto the canvas.
  3. In the trigger's configuration panel, add input variables for any data you want to include in the message — for example, recordName (string) and status (string).

2. Compose the message

  1. Drag a Script node onto the canvas and connect it to the trigger.
  2. In the code editor, write the message text using your input variables:
return `✅ Update: *${recordName}* is now ${status}.\nTriggered at: ${new Date().toISOString()}`;
return `✅ Update: *${recordName}* is now ${status}.\nTriggered at: ${new Date().toISOString()}`;
  1. Set Output variable name to messageText.

Adjust the format to match your team's conventions. Slack supports basic markdown in messages (*bold*, _italic_, \n for line breaks).

3. Add the Slack Send Message node

  1. In the node panel, open Integration nodes and find the Slack connector.
  2. Drag the Send message action onto the canvas and connect it to the Script node.
  3. 設定パネルで、以下の手順を実行します。
    • Select your Slack Connection.
    • Set Channel to the channel ID or name where the message should be sent (for example, #alerts).
    • Map Message to {{ $vars.messageText }}.

4. Test and debug

  1. [ テスト] を選択します。
  2. In the trigger dialog, enter sample values for recordName and status.
  3. Run the test.

Check the Slack channel after the run completes. If the message does not appear:

  • Verify the Slack connection is active in Integration Service.
  • Check the channel name — use the channel ID (starts with C) rather than the display name if you get a "channel not found" error.
  • Inspect the Slack node's output in the execution trace for any error details from the Slack API.

結果

Your workflow fires on demand, composes a dynamic Slack message from the trigger inputs, and posts it to the configured channel. You can confirm success by checking the channel directly and by inspecting the Slack node's output in the execution trace.

Extend this workflow

  • Add a condition — Before the Slack node, add a Decision node to only send the message when a certain threshold is met (for example, only notify on Failed status).
  • Replace the trigger — Swap the Manual Trigger for an integration trigger or a Scheduled Trigger to send notifications automatically.
  • Send to multiple channels — Add a Switch node to route the message to different channels based on priority or team.

このページは役に立ちましたか?

接続

ヘルプ リソース サポート

学習する UiPath アカデミー

質問する UiPath フォーラム

最新情報を取得