Integration · Databases
AI agents for Upstash Redis
Read and write keys in an Upstash Redis database over its REST API: get, set (with an expiry), delete and expire keys, read and set hash fields, scan for keys by pattern, and run other everyday Redis commands.
- Actions
- 8
- Read
- 3
- Write
- 5
Actions
What your agents can do in Upstash Redis
Read and write keys in an Upstash Redis database over its REST API: get, set (with an expiry), delete and expire keys, read and set hash fields, scan for keys by pattern, and run other everyday Redis commands. A read-only token limits it to reads.
Read 3
Look things up. Nothing changes.
Get a key's value
Reads the string value stored at key (GET), as result; null when the key does not exist.
Get hash fields
Reads a hash.
Find keys
Walks the keyspace a page at a time (SCAN).
Write 5
Create, change or send.
Set a key's value
Stores value at key (SET), replacing what was there, and answers result "OK".
Delete keysDeletes data
Permanently deletes one or more keys of any type (DEL) and answers result, the number of keys that existed and were removed.
Set a key's expiry
Makes key expire seconds from now (EXPIRE), replacing any earlier expiry; result is 1 when set and 0 when the key does not exist.
Set hash fields
Sets one or more fields of a hash (HSET), creating the hash when needed and keeping its other fields; result is the number of fields that were new.
Run a command
Runs one Redis command from a fixed list, with its arguments in order as strings, and returns its answer as result.
A person can approve first
Any write action can be set to wait for a person's approval before it runs, so an agent asks before it changes anything. Actions that delete data ask first by default.
Connection
How it connects
Connect it once in the console, then give it to the agents and workflows that need it.
Paste an API key from your Upstash Redis account.
What you enter
- REST token
Settings
- REST URL
Kept safe
- Credentials are stored encrypted with your organization's own keys.
- They are opened only by the process that makes the call, at the moment it runs, and never go into a prompt or the browser.
- Calls go only to the tool's own servers.
Ideas
Ideas to start with
Starting points made only from the actions above. Mix them with any other tool your agents can use.
- 01
Ask about your Upstash Redis data
Ask a question in plain words. The agent can get a key's value, get hash fields or find keys in Upstash Redis, then answers with what it found.
- 02
Let an agent update Upstash Redis
Have the agent set a key's value or set a key's expiry in Upstash Redis as part of a larger task. Turn on approval and a person signs off on each change first.
- 03
Share what it finds in Slack
Give one agent Upstash Redis and Slack: it can get a key's value in Upstash Redis and post a summary to a Slack channel in the same run.
FAQ
Upstash Redis and MyDeepAgents
Can MyDeepAgents connect to Upstash Redis?
Yes. The Upstash Redis connector has 8 actions: 3 read and 5 make changes. Your agents can call them as tools, and your workflows can run them as steps.
How do I connect Upstash Redis?
Paste an API key from your Upstash Redis account. You'll need: REST token. The connection also asks for: REST URL. Credentials are stored encrypted with your organization's own keys and are opened only at the moment of a call.
Can an agent change data in Upstash Redis without asking?
Only if you let it. Each of the 5 actions that change data can be set to wait for a person's approval before it runs, and the one that deletes data asks first by default.
Can I use Upstash Redis in workflows as well as agents?
Yes. Every Upstash Redis action also works as a step in a workflow, and the same connection serves your agents and your workflows.
Early access
Put Upstash Redis to work
Connect it in a few minutes, give an agent the actions it needs, and decide which changes wait for a person.