Skip to content

Commit

Permalink
DUST_CLIENT_FACING_URL part of URL revamp (#2251)
Browse files Browse the repository at this point in the history
  • Loading branch information
lasryaric authored Oct 25, 2023
1 parent a204128 commit eed4d2e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions connectors/src/connectors/slack/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import {
getUserName,
} from "./temporal/activities";

const { DUST_API = "https://dust.tt" } = process.env;
const { DUST_CLIENT_FACING_URL } = process.env;

class SlackExternalUserError extends Error {}

Expand Down Expand Up @@ -446,7 +446,7 @@ async function botAnswerMessage(
let finalAnswer = normalizeContentForSlack(
_processCiteMention(fullAnswer, action)
);
finalAnswer += `...\n\n <${DUST_API}/w/${connector.workspaceId}/assistant/${conversation.sId}|Continue this conversation on Dust>`;
finalAnswer += `...\n\n <${DUST_CLIENT_FACING_URL}/w/${connector.workspaceId}/assistant/${conversation.sId}|Continue this conversation on Dust>`;

await slackClient.chat.update({
channel: slackChannel,
Expand All @@ -466,7 +466,7 @@ async function botAnswerMessage(
let finalAnswer = normalizeContentForSlack(
_processCiteMention(fullAnswer, action)
);
finalAnswer += `\n\n <${DUST_API}/w/${connector.workspaceId}/assistant/${conversation.sId}|Continue this conversation on Dust>`;
finalAnswer += `\n\n <${DUST_CLIENT_FACING_URL}/w/${connector.workspaceId}/assistant/${conversation.sId}|Continue this conversation on Dust>`;

await slackClient.chat.update({
channel: slackChannel,
Expand Down Expand Up @@ -516,7 +516,7 @@ function _processCiteMention(
}
const link = ref.sourceUrl
? ref.sourceUrl
: `${DUST_API}/w/${
: `${DUST_CLIENT_FACING_URL}/w/${
ref.dataSourceWorkspaceId
}/builder/data-sources/${
ref.dataSourceId
Expand Down

0 comments on commit eed4d2e

Please sign in to comment.