I am trying to using dbt Elementary OSS to send sl...
# ask-elementary-ai
t
I am trying to using dbt Elementary OSS to send slack alerts via slack workflow. When I receive the slack alert via the workflow, it doesn't return the values of the key:value pairs. @kapa.ai kindly help me with this
k
A message from kapa.ai
I'll help you troubleshoot your issue with Elementary Data's Slack workflow alerts. Based on the knowledge sources, to use Elementary with Slack Workflows, you need to add a specific configuration to your
config.yml
file under the slack tag:
Copy code
yaml slack:   notification_webhook: <your_slack_webhook_url>   workflows: true
The
workflows: true
flag changes the format in which Elementary sends Slack alerts to the key-value pairs format that's supported by Slack Workflows. When properly configured, the alert format should be:
Copy code
{   "alert_description": str,   "table_name": str,   "detected_at": str,   "type": str,   "description": str }
[Slack Workflows documentation](https://docs.elementary-data.com/oss/deployment-and-configuration/slack#slack-workflows) indicates that this format is specifically designed to work with Slack Workflows. If you're not seeing the values in your key-value pairs, here are a few things to check: 1. Make sure you've set
workflows: true
in your config.yml 2. Verify that your webhook URL is correct and working 3. Check that you're using the webhook integration method (not the token method) 4. Ensure you're running the latest version of Elementary If you're still experiencing issues after checking these items, you might want to look at the
edr.log
file which is created where you executed the edr command. This log file can provide more details about what might be going wrong with your Slack alerts. The knowledge sources don't contain specific troubleshooting steps for when key-value pairs aren't showing values in Slack Workflows, so you might need to reach out to Elementary's support team for more specific help with this issue.
n
Hey @Tochi! Was this helpful? 🙂
t
@Noya Offer Not really🙂. I already did this before. It actually sends a response to the slack workflow app but the output is empty. I used the alert the keys as the variables of the slack workflow.
n
@Tochi Can you please share a screenshot of the alert you're receiving? It will help us debug this.
t
This is the screenshot of the Slack workflow message
These are the variables I set in the workflow.
This is the customize message
n
Thanks @Tochi! Sent you a DM to test a solution for this.