Email yourself a daily quote on weekdays and a joke on weekends
Send yourself a daily quote on weekdays and a joke on weekends via email.
This workflow fetches an inspirational quote on weekdays, and a joke on the weekends and then sends it to the email address you specify.
- Daily schedule trigger at 08:00 London time
- Weekend detection using the dateHelper component
- Condition-based branching: joke on weekends, quote on weekdays
- HTTP GET requests to two separate public APIs
- Gmail email delivery with dynamic subject and body from API response
- Google Mail (Gmail) connection
- Internet access to reach the public joke and quote APIs
Anyone who wants a fun daily email: an inspirational quote to start the work week and a joke to kick off the weekend.
- Trigger: the workflow fires every day at 08:00 Europe/London.
- Check if it's the weekend using the dateHelper isWeekend component.
- Condition branches on the result: TRUE path for weekends, FALSE path for weekdays.
- Weekend (TRUE): fetch a random joke from the Official Joke API, then send it as an email with the setup as subject and punchline as body.
- Weekday (FALSE): fetch a random quote from dummyjson.com, then send it as an email with the author as subject and the quote as body.
MoreGetting StartedTemplates
Build your first agent
Your first AI agent in ByteChef. The agent uses an OpenAI model and one tool, the HTTP Client, to fetch a random quote from a public API, then explains the quote in one sentence and logs the answer. It runs on a manual trigger, so after importing it you connect your OpenAI API key, click Run and watch the tool call in the execution log.
Learn ByteChef by doing
New to ByteChef? This simple workflow is the perfect way to get started. In just a few minutes, you'll build your first automation: it fetches a random quote from the internet and logs it. It uses a manual trigger, so after importing it you click Run and see the result immediately. Swap in a Schedule trigger when you want it to run on its own.
How ByteChef works?
Focus on what matters,automate the rest.
By subscribing, you agree to receive emails from ByteChef and to our Privacy Policy. You can unsubscribe at any time.