Overview
Build a small Dify workflow that reads a pasted school email or a photo of a paper notice, pulls out each event with its date and time, and returns a list and a calendar file you check before importing.
Problem or Objective
- Which agents read and update your calendar on request?
- Which tools read text and tables from scanned documents?
More in Personal Productivity
AI Agents and Models
Tools and Integrations
- Tools
- Dify
- Prerequisites
- A Dify Cloud account or a self-hosted Dify instance, a model that accepts images, and a calendar app that can import iCalendar files (check yours).
How It Works
In Dify, create a Workflow app with two inputs: a text box for a pasted school email and a file input for a photo or PDF of a notice. Add an LLM node using a model that handles images, attach the inputs, and ask it to return each event as JSON with title, date, start and end time, place, what to bring and the sentence it came from. Have it mark any date it had to guess, such as a weekday without a date. Add a second step that turns the confirmed list into an iCalendar file. Run the app from your phone when a notice arrives, read the list against the notice, fix anything marked, then import the file into the family calendar yourself.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Dify.
- Connect the toolsConnect the tools this workflow relies on: Dify.
- Check the prerequisitesA Dify Cloud account or a self-hosted Dify instance, a model that accepts images, and a calendar app that can import iCalendar files (check yours).
- Gather your detailsCollect what the prompt asks for: Pasted text of the school email, Photo or PDF of a paper notice, Class or year group the events are for, School year, to resolve dates without a year.
- Run the starter promptPaste the starter prompt below into Dify and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.dify.ai before you rely on it.
Practical Starter Prompt: Extract events from a school notice
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Read this school notice: [Pasted text of the school email] and the attached photo [Photo or PDF of a paper notice]. List every event for [Class or year group the events are for] as JSON with title, date, start time, end time, place, what to bring and the sentence it came from. The school year is [School year, to resolve dates without a year]. If a date or time is unclear, mark it as a guess instead of inventing it. Do not add anything to a calendar: I will review the list, approve it and import the events myself.Compare each date and time with the notice, fix anything marked as a guess, and only then import the calendar file yourself.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Dify's README describes building and testing AI workflows on a visual canvas, and its LLM node page says the node processes text, images and documents, can be forced to return JSON, and offers a high detail setting for complex images. The pages say nothing about connecting a mailbox or writing to a calendar, so this entry keeps both of those steps with the parent.
Limitations and Considerations
Photos of crumpled or partly covered notices can be read wrongly, so compare every date with the original before importing. School notices may name other children or staff; check where your Dify instance and the model provider store uploaded files, and use a self-hosted instance if that matters to you. Check that your calendar app can import iCalendar files and whether it creates duplicates when you import the same event twice. Model calls cost tokens, and the high detail image setting uses more. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About langgenius/dify
Dify vs Flowise vs Langflow: Best Open Source AI Workflow Builder (opens in a new tab)
Walkthrough of dify by StackWhiz: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)About langgenius/dify
Dify Explained: Build AI Workflows, RAG and Agents in One Place (opens in a new tab)
Walkthrough of dify by Ilm Initiative: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- LLM - Dify Docs (opens in a new tab)
Project documentation · docs.dify.ai · Undated · Source checked 26 Nov 2026, 18:29 UTC
What this source supports
- The LLM node invokes language models to process text, images, and documents, supporting structured outputs and multimodal inputs.
- Structured outputs force models to return specific data formats like JSON; a model without native structured output may still return output that does not match the schema, and the node fails.
- For file processing, file variables are added to prompts for multimodal models; when processing images you can choose a high detail level, which gives better accuracy for complex images but uses more tokens.
- langgenius/dify README (opens in a new tab)
Project documentation · github.com · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- Dify is an open-source LLM app development platform whose interface combines AI workflow, RAG pipeline, agent capabilities and model management.
- Workflows are built and tested on a visual canvas; Dify is offered as Dify Cloud and can be self-hosted.

