The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { runBestEffortSlackCall } from 'src/logic-functions/utils/run-best-effort-slack-call';
export const setSlackAssistantThreadTitle = async ({
slackChannelId,
threadTimestamp,
title,
}: {
slackChannelId: string;
threadTimestamp: string;
title: string;
}): Promise<void> =>
runBestEffortSlackCall('assistant.threads.setTitle', (client) =>
client.assistant.threads.setTitle({
channel_id: slackChannelId,
thread_ts: threadTimestamp,
title,
}),
);