mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-19 11:11:05 -05:00
implement new slack ep
This commit is contained in:
@@ -69,7 +69,9 @@ The slack integration allows you to automatically send responses to a Slack chan
|
||||
channel in the Slack workspace you integrated.
|
||||
</Note>
|
||||
|
||||
5. Now click on the "Link channel" button to link a Slack channel with Formbricks and a modal will open up.
|
||||
5. Add your bot to the Slack channel you want to link
|
||||
|
||||
6. Now click on the "Link channel" button to link a Slack channel with Formbricks and a modal will open up.
|
||||
|
||||
<MdxImage
|
||||
src={LinkSurveyWithChannel}
|
||||
@@ -78,7 +80,7 @@ The slack integration allows you to automatically send responses to a Slack chan
|
||||
className="max-w-full rounded-lg sm:max-w-3xl"
|
||||
/>
|
||||
|
||||
6. Select the channel you want to link with Formbricks and the Survey. On doing so, you will be asked to select the questions' responses you want to feed in the Slack channel. Select the questions and click on the "Link Channel" button.
|
||||
7. Select the channel you want to link with Formbricks and the Survey. On doing so, you will be asked to select the questions' responses you want to feed in the Slack channel. Select the questions and click on the "Link Channel" button.
|
||||
|
||||
<MdxImage
|
||||
src={LinkWithQuestions}
|
||||
@@ -87,7 +89,7 @@ The slack integration allows you to automatically send responses to a Slack chan
|
||||
className="max-w-full rounded-lg sm:max-w-3xl"
|
||||
/>
|
||||
|
||||
7. On submitting, the modal will close and you will see the linked Slack channel in the list of linked Slack channels.
|
||||
8. On submitting, the modal will close and you will see the linked Slack channel in the list of linked Slack channels.
|
||||
|
||||
<MdxImage
|
||||
src={ListLinkedSurveys}
|
||||
@@ -124,6 +126,7 @@ Enabling the Slack Integration in a self-hosted environment requires a setup usi
|
||||
4. Go to the **OAuth & Permissions** tab on the sidebar and add the following **Bot Token Scopes**:
|
||||
|
||||
- `channels:read`
|
||||
- `groups:read`
|
||||
- `chat:write`
|
||||
- `chat:write.public`
|
||||
- `chat:write.customize`
|
||||
|
||||
@@ -303,6 +303,7 @@ Enabling the Slack Integration in a self-hosted environment requires a setup usi
|
||||
4. Go to the **OAuth & Permissions** tab on the sidebar and add the following **Bot Token Scopes**:
|
||||
|
||||
- `channels:read`
|
||||
- `groups:read`
|
||||
- `chat:write`
|
||||
- `chat:write.public`
|
||||
- `chat:write.customize`
|
||||
|
||||
@@ -11,8 +11,9 @@ export const fetchChannels = async (slackIntegration: TIntegration): Promise<TIn
|
||||
let nextCursor: string | undefined = undefined;
|
||||
|
||||
do {
|
||||
const url = new URL("https://slack.com/api/conversations.list");
|
||||
const url = new URL("https://slack.com/api/users.conversations");
|
||||
url.searchParams.append("limit", "200");
|
||||
url.searchParams.append("types", "private_channel,public_channel");
|
||||
if (nextCursor) {
|
||||
url.searchParams.append("cursor", nextCursor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user