- Activepieces: A no-code, open-source automation platform that allows you to run scheduled flows with intelligent decision logic, integrations, and multi-step workflows.
- Dappier: A platform connecting LLMs and automations to real-time, rights-cleared data from trusted sources. It specializes in domains like trending news, AI research, finance, and lifestyle, delivering prompt-ready data with up-to-date insights.
- OpenAI: Used here to transform raw data into engaging tweet-sized content, leveraging the creative power of GPT-4o.
- Twitter: Publishes the final tweet live to your feed—automatically and without human intervention.
⏰ Schedule-Based Trigger Setup
To kick off the automation, we’ll use a time-based trigger that runs every few minutes to check for trending content and post a tweet.Step 1: Set the Trigger – Every X Minutes
Search for the Schedule piece and select the Every X Minutes trigger. Configure it as follows:- Frequency:
Every 1 minute(You can adjust this value depending on how frequently you want to post content—e.g., every 15 minutes, 1 hour, etc.)
🌐 Fetch Trending Content using Dappier
With the schedule trigger in place, the next step is to retrieve real-time trending news content that will serve as the basis for the tweet.Step 2: Add Dappier – Real Time Data
Add a Dappier action and choose theReal Time Data action.
Configure the following:
-
Query:
✍️ Generate Tweet Using OpenAI
Now that you’ve retrieved trending AI news using Dappier, the next step is to craft an engaging tweet using OpenAI’s powerful language model.Step 3: Add OpenAI – Ask ChatGPT
Add an OpenAI action and chooseAsk ChatGPT.
Configure the following settings:
- Model:
chatgpt-4o-latest - Prompt:
- Max Tokens: 2048
- Temperature: 0.9
- Presence Penalty: 0.6
- Frequency Penalty: 0
🐦 Post Tweet to Twitter Automatically
Once OpenAI generates the tweet content, the final step is to post it directly to your Twitter account using the Twitter piece.Step 4: Add Twitter – Create Tweet
Add a Twitter action and chooseCreate Tweet.
Configure the following:
- Text:
- Authentication: Connect your Twitter account via OAuth when prompted.
🌟 Highlights
This notebook has guided you through building a fully automated social media workflow that tweets real-time AI news content using Activepieces, OpenAI, Dappier, and Twitter. You’ve seen how to schedule automation, retrieve trending data, generate engaging tweets, and post them—all without human intervention. Key tools utilized in this notebook include:- Activepieces: A powerful no-code automation platform that enables scheduled workflows, intelligent decision logic, and seamless integration with third-party apps like Twitter.
- Dappier: A platform connecting LLMs and automation tools to real-time, rights-cleared data from trusted sources, specializing in trending news, finance, and lifestyle. It delivers enriched, prompt-ready data, ideal for dynamic content generation.
- OpenAI: Used here for transforming trending content into engaging, human-like tweets using GPT-4o.
- Twitter: The final publishing channel where the generated tweets are posted automatically.

