Schedule
Schedule a Slack message
Schedule
Schedule a Slack message
yaml
type: "io.kestra.plugin.slack.app.chats.Schedule"Examples
yaml
id: slack_schedule_message
namespace: company.team
tasks:
- id: schedule_message
type: io.kestra.plugin.slack.app.chats.Schedule
token: "{{ secret('SLACK_TOKEN') }}"
channel: "#general"
messageText: "Scheduled reminder"
postAt: "{{ now() | dateAdd(1, 'HOURS') }}"
yaml
id: slack_daily_report
namespace: company.team
tasks:
- id: schedule_report
type: io.kestra.plugin.slack.app.chats.Schedule
token: "{{ secret('SLACK_TOKEN') }}"
channel: "#reports"
postAt: "{{ now() | dateAdd(1, 'DAYS') | date('yyyy-MM-dd') }}T09:00:00Z"
payload: |
{
"text": "Daily Report",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Daily Report* - Ready for review"
}
}
]
}