Instill AI changelog
Run-on-Event: Send Slack message on GitHub star event
Introducing the new Run-on-Event feature on 💧 Instill VDP to enhance pipeline automation by listening to events from other services so that VDP can provide corresponding actions.
Features
A star created event from GitHub
A new message event from Slack
Run-on-Event enables you to:
Trigger downstream processes by listening to events
Automate notifications & alerts
Enable real-time data synchronization across different services
Send a message to Slack on a GitHub star event
Pre-requisites:
When someone stars your GitHub repo, automatically send a message to your designated Slack channel.
Customize your event messages
See the example recipe below:
# VDP Version
version: v1beta
on:
github:
type: github
event: EVENT_STAR_CREATED
config:
repository: <USERNAME/YOUR-GITHUB-REPO> # i.e. instill-ai/instill-core
setup: ${connection.<YOUR-GITHUB-CONNECTION>}
variable:
repository:
title: repository
format: string
listen:
- ${on.github.message.repository.full-name}
user:
title: user
format: string
listen:
- ${on.github.message.sender.login}
description:
title: user
format: string
listen:
- ${on.github.message.repository.description}
stargazers-count:
title: stargazers-count
format: number
listen:
- ${on.github.message.repository.stargazers-count}
output:
text:
value: ${variable.repository} ${variable.user}
component:
slack:
type: slack
input:
channel-name: <YOUR-SLACK-CHANNEL-NAME> # i.e. notify-github-star
message: |
${variable.user} star ${variable.repository}
Repo Description: ${variable.description}
Stargazers Count: ${variable.stargazers-count}
as-user: false
condition:
setup: ${connection.<YOUR-SLACK-CONNECTION>}
task: TASK_WRITE_MESSAGE
The GitHub star and Slack message examples demonstrate how Run-On-Event can bridge different services, allowing VDP to create responsive, event-driven workflows that enhance overall system automation and integration.
Learn more about this feature by joining our Discord where we showcase these new features.