Integrations
Slack
APIs
Batched Send Message to User by Email

Batched Send Message to User by Email

Send a batch of messages where each message is sent to its own defined user.

For more information on the API for sending a message to a user by email, see users.lookupByEmail (opens in a new tab) and chat.postMessage (opens in a new tab).

SDK Import:

from admyral.actions import batched_send_slack_message_to_user_by_email

Arguments:

Argument NameDescriptionRequired
Messages messagesA list of messages where each message consists of a tuple containing the arguments of send_slack_message_to_user_by_email: (email, text, blocks). If text or blocks should not be provided, then it must be set to None in the SDK and null in the UI editor.Yes

Required Secrets

Secret PlaceholderDescription
SLACK_SECRETSlack secret. See Slack setup

SDK Example

user = batched_send_slack_message_to_user_by_email(
    messages=[
        ("daniel@admyral.dev", "Example slack message", None)
    ],
	secrets={
		"SLACK_SECRET": "my_stored_slack_secret"
	}
)