-
Notifications
You must be signed in to change notification settings - Fork 650
feat: display referenced artifacts in slack response #18058
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
feat: display referenced artifacts in slack response #18058
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Your preview environment pr-18058 has been deployed with errors. |
|
Preview environment logs can be accessed at: https://console.cloud.google.com/logs/query;query=resource.labels.namespace_name%3D%22pr-18058%22;duration=PT30M?project=lightdash-previews |
|
You can ssh into the preview environment by running: |
Merge activity
|
658b095 to
ee992cc
Compare
| return { | ||
| type: 'button', | ||
| url, | ||
| text: { | ||
| type: 'plain_text', | ||
| text: `📊 ${title}`, | ||
| emoji: true, | ||
| }, | ||
| action_id: 'view_artifact', | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slack buttons cannot have both url and action_id properties. When a url is present, the button becomes a link button that opens the URL directly and never triggers the action_id handler. This means handleViewArtifact() will never be called.
Impact: Analytics tracking (mentioned in TODO) will never work, and any future logic added to handleViewArtifact() will never execute.
Fix: Remove either url or action_id:
// Option 1: Keep as URL button (remove action_id)
return {
type: 'button',
url,
text: {
type: 'plain_text',
text: `📊 ${title}`,
emoji: true,
},
};
// Option 2: Make it an action button (remove url, handle navigation in the action handler)
return {
type: 'button',
text: {
type: 'plain_text',
text: `📊 ${title}`,
emoji: true,
},
action_id: 'view_artifact',
value: JSON.stringify({ url }),
};| return { | |
| type: 'button', | |
| url, | |
| text: { | |
| type: 'plain_text', | |
| text: `📊 ${title}`, | |
| emoji: true, | |
| }, | |
| action_id: 'view_artifact', | |
| }; | |
| return { | |
| type: 'button', | |
| text: { | |
| type: 'plain_text', | |
| text: `📊 ${title}`, | |
| emoji: true, | |
| }, | |
| action_id: 'view_artifact', | |
| value: JSON.stringify({ url }), | |
| }; | |
Spotted by Graphite Agent
Is this helpful? React 👍 or 👎 to let us know.
# [0.2165.0](0.2164.5...0.2165.0) (2025-11-13) ### Bug Fixes * update tooltip text and rename "Referenced artifacts" to "Referenced answers" ([#18067](#18067)) ([92852b7](92852b7)) ### Features * add a page to view a single verified answer from a link ([#18057](#18057)) ([c1de74a](c1de74a)) * display referenced artifacts in slack response ([#18058](#18058)) ([c4119a8](c4119a8))
|
🎉 This PR is included in version 0.2165.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
<!-- Thanks so much for your PR, your contribution is appreciated! ❤️ --> ### Description: Added support for displaying referenced artifacts in Slack responses. When an AI agent references artifacts in its response, these are now shown as clickable buttons in the Slack message, allowing users to easily access the referenced data. The implementation includes: - New function `getReferencedArtifactsBlocks` to generate Slack blocks for referenced artifacts - Added handler for artifact view button clicks in Slack - Updated the message composition logic to fetch and include referenced artifacts ![CleanShot 2025-11-12 at [email protected]](https://app.graphite.com/user-attachments/assets/a0d94ad8-171a-4f7a-acb2-e87c54e61d6d.png)
# [0.2165.0](lightdash/lightdash@0.2164.5...0.2165.0) (2025-11-13) ### Bug Fixes * update tooltip text and rename "Referenced artifacts" to "Referenced answers" ([lightdash#18067](lightdash#18067)) ([92852b7](lightdash@92852b7)) ### Features * add a page to view a single verified answer from a link ([lightdash#18057](lightdash#18057)) ([c1de74a](lightdash@c1de74a)) * display referenced artifacts in slack response ([lightdash#18058](lightdash#18058)) ([c4119a8](lightdash@c4119a8))

Description:
Added support for displaying referenced artifacts in Slack responses. When an AI agent references artifacts in its response, these are now shown as clickable buttons in the Slack message, allowing users to easily access the referenced data.
The implementation includes:
getReferencedArtifactsBlocksto generate Slack blocks for referenced artifacts