For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  1. It saves what it learns (for example, “User prefers daily reports”).

  2. The next run looks that memory up.

  3. 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

Do I need to set up Redis myself?

No. Redis is built into CodeWords. Cody manages setup and connections automatically — you never install or maintain anything.

When does CodeWords use Redis?

When your automation needs short-term memory — for example, to remember preferences, cache results, or track changes between runs.

Can Cody decide when Redis is needed?

Yes. Cody detects when memory will make your automation smarter or more efficient, and adds Redis when it helps.

Is my Redis data secure?

Yes. Redis data is encrypted, isolated per user, and deleted after its expiration period. Only your workflows can access it.

Is Redis required for every workflow?

No. Many simple or one-time automations don’t need Redis. It’s only used when memory adds real value.

Last updated

Was this helpful?