activities
latest
false
UiPath logo, featuring letters U and I in white
Integration Service Activities
Last updated Nov 5, 2024

Send Message to User

Description

Sends a message to an individual user.

Project compatibility

Windows | Cross-platform

Configuration

  • Connection ID - The connection established in Integration Service. Access the dropdown menu to choose, add, or manage connections.

  • User - Select the user from the drop-down list or enter the email, user ID or username handle (with the @ prefix), i.e., @john.doe. To retrieve the email, navigate to the user profile in Slack and select the Copy email address button.
  • Message - The formatted text of the message to be sent. See Formatting text for app surfaces for formatting rules. This field supports String type input.
  • Send as - Whether to send the message as the app bot, i.e., using Bot token, or yourself, i.e., user token. Select one of the two options from the available drop-down list.
  • Message fields - Enter field/values in the following format: field1:value;field2:value. These fields are displayed below the main section text in a two-column format. You can also enter variables such as ID, name, event trigger output etc. This field supports String type input.
  • Buttons actions - Button action properties in comma-separated format: action ID (required), action name (required), style (primary/danger), confirmation title, confirm ok title, confirm deny title. A maximum of five button actions separated by ; can be provided. For example: action1,Approve,primary;action2,Reject,danger;Confirm,Sure?,Yes,No. All action properties (except style) are customer/user defined. Action names IDs must be unique among buttons. Confirmation title, text, ok title, deny title must be used together. This field supports String type input.
  • Image URL - The URL of the secondary image attachment can be shared as part of the message. The image is always at the bottom of the entire message block. This field supports String type input.
Manage Properties

Use the Manage Properties wizard to configure or use any of the object's standard or custom fields. You can select fields to add them to the activity canvas. The added standard or custom fields are available in the Properties panel (in Studio Desktop) or under Show additional properties (in Studio Web).

Additional properties
  • Formatting options (parse) - Change how messages are treated. Select none for removing hyperlinks and full to ignore the Slack default formatting.
  • Link names - Specifies whether to link and mention all the user groups automatically if the respective names are mentioned in the text message. Boolean value.
  • Unfurl links - Specifies whether to display the preview of the links mentioned in the text message. Boolean value.
  • Bot name - Only supported with Bot Token connection. Customize the bot’s user name when sending messages. If no value is entered, the default bot name is UiPath.passed.
  • Bot icon - Only supported with Bot Token connection. Customize the bot’s icon with an emoji available in the workspace. For example, :chart_with_upwards_trend:. If you provide an emoji that is not available in the workspace, it is ignored.
Output
  • Message timestamp - The ID (timestamp) of the message sent. Automatically generated output variable.
  • Channel - The output send message to user. Automatically generated output variable.

Example

You can provide the following input for Buttons actions and Message fields:


The final Slack button message looks as follows:


When you click the Reject button, a confirmation dialog box is displayed:


You can configure the response to the above button clicks in a separate workflow using the Button Clicked event. To ensure the button is clicked only once, use Send Button Response in the workflow along with Button Clicked to replace or delete the button message after first click.

  • Description
  • Project compatibility
  • Configuration
  • Example

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.