> For the complete documentation index, see [llms.txt](https://docs.snyk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snyk.io/developer-tools/snyk-api/using-specific-snyk-apis/webhooks-apis/guides-to-webhooks/how-to-use-snyk-webhooks-to-connect-snyk-to-slack-with-aws-lambda/slack-setup-to-connect-snyk-with-aws-lambda.md).

# Slack setup to connect Snyk with AWS Lambda

To enable Snyk to communicate with Slack, start by setting up incoming webhooks through Slack Apps. These are provided by Slack to enable developers to communicate with Slack.

To set up Slack Apps with a webhook, follow these steps:

1. Go to <https://api.slack.com/apps>.
2. Select **Create New App**.

   <figure><img src="https://lh5.googleusercontent.com/qw51g6soQ6IjBf95JM0hhIsON0RqAhwuDbd7p3FA_AoGatQWx_0VcefI7RhEoUuKkuDNmXQNSIxw9aD7T7uhG4YPxvRIsAhDnHtVCGT_PtGuAD3fZDO4Qlye45iz94j7xZb0Ze0g8h16xMNtE-3zhmsw8wmq-m_K6OI1UD8mN-CKbNZEJCynuOHEBg" alt=""><figcaption><p>Your Apps in Slack</p></figcaption></figure>
3. Select **From scratch**.

   <figure><img src="https://lh4.googleusercontent.com/uDE4iWxfnHF0KvGGZlwZwAp39zNvG1Vav8yOSxak5DhOIdOl983GS8Xmr-YJ9WpfiS6WJD2b5yhgbUAxMpm7rDwpQkEH2W2zOSyNQZdDAqDvBFpBMP7uYZwDtPGE3OGt0-g-JW09Dx2RB2wcfghEpc8J47A-DH7fejMkupKPnhrspesfPt45duXivg" alt=""><figcaption><p>Create a Slack app from scratch</p></figcaption></figure>
4. Give the app a name like "Snyk".
5. If you want to set the logo and an appropriate background you can download the Snyk logo [here](https://snyk.io/press-kit/) while using background color #1d1848.
6. Select your workspace.
7. With the Slack App created, click **Add features and functionality**.
8. Select **Incoming Webhooks**.

   <figure><img src="https://lh3.googleusercontent.com/yc2jyH0npATioGnzPLv5WEmI762OIYoefYVztKfvfAS9iV6yHNudbralS8VfLE0NT2x9TqM7lDCVLfV_27cC6Z82P5qprCIu4FKnVco1FfzsDJb3t6_V5BowDpBYw8GrNEaW8TZGbb1hmXsQflr1eeCTNAhKNpbE-AbUJGnxT65Uu67niA_HdCklQg" alt=""><figcaption><p>Add features and functionality to Slack App, Incoming webhooks</p></figcaption></figure>
9. Activate incoming webhooks in that page.

   <figure><img src="/files/B9pIjJIwqtjpGHUfcWtL" alt=""><figcaption><p>Incoming webhooks activation</p></figcaption></figure>
10. Generate a webhook URL for the channel you want by clicking on **Add New Webhook to Workspace**.
11. Select the channel you want Snyk to post to. If you haven’t already done so, [create a channel](https://slack.com/intl/en-gb/help/articles/201402297-Create-a-channel).
12. When the webhook has been created, copy and save the webhook URL to use in the next step in AWS.

<figure><img src="https://lh3.googleusercontent.com/av55N4Y2DyLFYmbrhC2gEjU9CINSP4DWUYfkhJju65Q9mpI-MqkKKsf5H8af2TMVy8f-jP6m-6Y-TAaaFsgf6dJ6LbtgGxfYM-vqAkUU5zYVYSoV8u8jKbFeBI9wWWpi9CFrSYPTM-ee2m7DJYDo1p4uBIf-IxqZSLpkJ4kQhp34lT6-6RQ9QLqIEQ" alt=""><figcaption><p>Generated webhook with Webhook URL</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.snyk.io/developer-tools/snyk-api/using-specific-snyk-apis/webhooks-apis/guides-to-webhooks/how-to-use-snyk-webhooks-to-connect-snyk-to-slack-with-aws-lambda/slack-setup-to-connect-snyk-with-aws-lambda.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
