Overview
This workflow will search Twitter and post new tweets to Slack based on a cron schedule.
Pipedream’s Cron Scheduler supports simple time triggers (such as every minute, hour or day) or advanced cron expressions.
Quickstart
- Click the FORK button above to fork this pipeline
- Switch to the Workflow tab to view and edit your workflow
- Sign up for a KVDB account and add your API keys to the Get value from KVDB and Set value in KVDB steps. This workflow uses KVDB to maintain state so only new tweets are sent to Slack.
- Create a Twitter developer account and add your API keys and search terms to the Search Twitter step
- Create an incoming webhook to send a message to a channel in Slack and add the URL to the Array to Webhook step
- Save your changes
- Click SEND TEST EVENT to test your workflow setup
Usage Tips
- All pipeline code on Pipedream is public, all event data is private.
- Pipeline code is run for every event sent to your source.
- Send data to S3, HTTP out using destinations.
- The event data sent to your source is accessible in the $event object — you can add, update, or delete any properties of this object in your code.
- Most of NPM’s 400,000 packages are available for use — just require() them.
- Using API keys or other sensitive data in your code? Create an environment variable and access it in code using process.env.KEY_NAME.
- Need to reject certain events sent to your pipeline, or end a pipeline early? Use $end().
- You need to await the execution of async code with Promises, using async / await — learn more here.