Sending Slack Messages

Deprecated Book

To send a message to a Slack channel or user, you need to specify the recipient and the message content.

Example 1:

send a slack message to "general" with
  the message is "Hello, world!"

This example demonstrates how to send a simple "Hello, world!" message to the "general" channel on Slack.

Example 2:

send a slack message to "john_doe" with
  the message is "Please review the attached document."
  the attachment is "s3://mybucket/documents/review.pdf"

This example shows how to send a message to a user named "john_doe" with a request to review a document. The document is attached via a link to an S3 bucket.

Last updated

Was this helpful?