Generate and send a joke or quote
Use AI to generate a daily quote with context on weekdays and a joke on weekends, then email it.
This workflow prompts OpenAI for an inspirational quote on weekdays and a joke on the weekends. The quote is enriched with some context. Afterwards, the joke or the quote is sent via email.
- Daily schedule trigger at 08:00 London time
- Weekend detection using the dateHelper component
- Condition-based branching: AI joke on weekends, AI quote on weekdays
- OpenAI gpt-4o-mini generates structured JSON responses via a response schema
- Weekday quotes enriched with historical context and usage
- Gmail email delivery with dynamic subject and body from AI response
- OpenAI API key
- Google Mail (Gmail) connection
Anyone who wants a daily AI-generated email — a contextual inspirational quote during the week and a fresh joke on weekends.
- Trigger: the workflow fires every day at 08:00 Europe/London.
- Check if it's the weekend using the dateHelper isWeekend component with the trigger timestamp.
- Condition branches on the result: TRUE path for weekends, FALSE path for weekdays.
- Weekend (TRUE): prompt OpenAI for a joke in JSON format (setup + punchline), then send it as an email with the setup as subject and punchline as body.
- Weekday (FALSE): prompt OpenAI for a quote in JSON format (author + quote + context), then send it as an email with the author as subject and the quote plus context as body.
MoreAITemplates
Polls Gmail for new emails and uses OpenAI to classify each one into a single department label (Sales, Support, Finance, Operations, HR, or URGENT). The matching Gmail label is applied, the department's recipient address is stored, and the original email is forwarded to the correct team.
When a Google Forms response is submitted, downloads the attached CV PDF from Google Drive, extracts its text, and summarizes it with AI. OpenAI scores the candidate from 0 to 10 against a Senior Java Developer job description. The name, email, summary, and score are recorded in a Google Sheet, and the CV file is filed into a Rejected or Potential candidates Google Drive folder based on the score.
Lists all files in a local documentation directory recursively, then loops over each file, reads its contents, and loads it into a Pinecone vector database as a Markdown document, building a searchable knowledge base for retrieval-augmented generation.