Skip to content

Commit 16e5f38

Browse files
committed
Use app URL based on intengration installation instead of hard coded one
1 parent 6b19849 commit 16e5f38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

integrations/slack/src/actions/ingestConversation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export async function ingestSlackConversation(params: IngestSlackConversationAct
2929
organizationId: installation.target.organization,
3030
context,
3131
});
32+
const appOrgURL = installation.urls.app.replace('/integrations/slack', '');
3233

3334
await Promise.all([
3435
slackAPI(
@@ -40,7 +41,7 @@ export async function ingestSlackConversation(params: IngestSlackConversationAct
4041
channel: channelId,
4142
text: isDocsAgentsEnabled
4243
? `🚀 Sharing this conversation with Docs Agent to improve your docs...`
43-
: `✨ Docs Agent is currently in private alpha.\n\nRequest early access for your organization: https://app.gitbook.com/o/${installation.target.organization}/agents`,
44+
: `✨ Docs Agent is currently in private alpha.\n\nRequest early access for your organization: ${appOrgURL}/agents`,
4445
thread_ts: threadId,
4546
},
4647
},

0 commit comments

Comments
 (0)