Redis: Your workflow’s memory
Learn how to use Redis as your workflow’s memory in CodeWords — store, recall, and manage data between runs to build smarter, faster, and more stateful automations.
What is Redis?
Redis gives your workflow memory. It lets automations remember information between runs so they can make smarter decisions next time.
Without Redis, your workflow:
Runs once, finishes, and forgets everything
Starts fresh each time, as if it has never seen the data before
With Redis, your workflow:
Saves key details (preferences, recent results, or progress)
Picks up where it left off on the next run
Feels more personal and consistent over time
Think of it as short-term memory your workflow can write to while it works.
Real-world examples
Website monitoring — Detect if a page’s content changed since the last check
Customer notifications — Remember who was already notified, and avoid sending twice
Report generation — Save previous snapshots and only report what’s new
Chatbot memory — Keep short-term conversation context so replies stay relevant
When a workflow runs with Redis:
It saves what it learns (for example, “User prefers daily reports”).
The next run looks that memory up.
If the memory is outdated, Redis can remove it after it expires.
You get stateful automations without standing up a full database yourself.
Best practices
Use Redis when your workflow needs to remember settings, progress, or recent results
Keep data small and focused — Redis is for quick notes, not large files
Let data expire when it should — short-lived memory keeps automations fast and clean
Use it for context, not long-term history — great for short-term recall, not permanent storage
When not to use Redis
You need to store data permanently (use a database instead)
Your automation doesn’t need to remember anything
The information is too large or too sensitive to store temporarily
How Cody decides when to use Redis
You don’t need to wire Redis up yourself. Cody handles that.
When you describe your automation, Cody checks whether memory would help:
If the workflow needs to track changes or store preferences, Cody adds Redis
If it doesn’t need memory, Cody skips Redis to keep things simpler and faster
FAQs
Last updated
Was this helpful?