-
Notifications
You must be signed in to change notification settings - Fork 404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using interactive blocks with Slack Assistants #2384
Comments
Hey @matined 👋 Thanks for sharing this setup 📚 ✨ I think the approach using app.action('url_text_input', async ({ action, body, client, ack }) => {
await ack();
// https://api.slack.com/methods/assistant.threads.setTitle
await client.assistant.threads.setTitle({
channel_id: body.channel.id,
title: 'chats about a link',
thread_ts: body.message.thread_ts,
});
// https://api.slack.com/methods/assistant.threads.setStatus
await client.assistant.threads.setStatus({
channel_id: body.channel.id,
status: 'surfing the web',
thread_ts: body.message.thread_ts,
});
// https://api.slack.com/methods/chat.postMessage
await client.chat.postMessage({
channel: body.channel.id,
text: `this link was shared: ${action.value}`,
thread_ts: body.message.thread_ts,
});
}); This does still use the Some unexpected behavior seems to happen when setting a status or posting a message before the user does - the suggested prompts remain present and the status text might not show. Wanted to share this here, but will report back with more findings on this! Setting a title and posting responses are all happening as expected too 👾 |
Thanks for the answer @zimeg 🙏 I've forgotten I can use I can confirm that setting status like that seems broken. There is a skeleton, but no status message: Have you managed to find any workaround for setting the status properly? Working status messages are crucial for assistants. |
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized. |
@slack/bolt
version4.2.0
My App and Receiver Configuration
Question
Hi, is it possible to handle interactive blocks in Slack Assistant conversation?
My case is like that, I want to send a welcome message on
assistant_thread_started
with interactive text input block:I see in the docs that I can create a separate action middleware like that:
However, using this approach, I cannot use setStatus function. Is there any other way to handle interactive elements when using Slack Assistants?
The text was updated successfully, but these errors were encountered: