Redis integration
Your Redis® database — or Valkey — from a flow. The action reads and writes keys, hashes, lists, sets and streams with forms, and publishes messages. It can also be an AI toolkit that lets an AI Node touch only the keys you list. As a trigger it starts a flow for each new entry of a stream. The same database can keep the memory of an AI Node and a vector store.
Setup
1. Create the credential
Under Settings → Credentials, or straight from the node, pick the Redis credential type, name it, and fill in:
- Host and Port (6379 if you leave it empty). Your server's address, e.g.
eu1-able-cat-12345.upstash.io. Through a tunnel it islocalhost. - Username (optional). Empty means
default, which is what Upstash and Redis Cloud give you when you haven't made ACL users. - Password. It is encrypted, and it comes back to the panel only in Edit keys and settings, after you verify it's you, and only for a person who can see it. It can be empty (a server without a password), with a warning.
- Database number (0 by default). Upstash, Redis Cloud and a cluster only have database 0.
- TLS and the CA certificate: see below.
- Tunnel (optional): for a server HostWebhook can't reach over the internet.
Or paste a URL. A URL like rediss://default:password@eu1-able-cat-12345.upstash.io:6379 fills the fields. HostWebhook reads it itself: only the scheme, the host, the port, the user, the password and the database number count, and rediss: sets TLS to Required. Check the TLS field after pasting. Any parameter after a question mark in the URL — for example ?host=, ?tls= or ?path= — is refused by name, because HostWebhook never lets a URL choose how the driver behaves.
TLS and the CA certificate
| Mode | What it does |
|---|---|
| Required | Encrypted, and the certificate and the server's name are checked. The default. e.g. Upstash. |
| Off | Not encrypted. It only works through a tunnel (the tunnel already encrypts the connection): without one it is refused. |
HostWebhook always checks the certificate: there is no mode that encrypts without checking it, because anyone in the middle could pass as your server and read the connection. When the server's certificate carries the server's name, use Required with that certificate pasted as the CA. When it doesn't, connect through a tunnel.
The CA certificate is optional, and it only counts with Required. Paste the PEM your provider gives you, as text — never a file path: HostWebhook doesn't read files from its own disk. Empty means the usual public roots.
| Where it lives | What to choose |
|---|---|
| Upstash | TLS Required: it is always on and can't be turned off. Paste its URL (rediss://…) or fill the fields. The user stays empty (it is default) unless you made ACL users, which Upstash has on its paid databases; the password of an ACL user comes from ACL GENTOKEN. Upstash charges for each command: see Limits and what each thing costs. |
| Redis Cloud | The free plan has no TLS, according to its documentation, and HostWebhook only connects without TLS through a tunnel: use a plan with TLS. Use the database's normal endpoint: one address, even if the database has several shards. The OSS Cluster API is separate, and Redis Cluster isn't supported yet. |
| Amazon ElastiCache (Redis OSS or Valkey) | It can only be reached from inside its VPC (from outside, AWS points to a VPN), so use a tunnel: run hostwh expose-tcp on a machine inside the VPC and pick it in the Tunnel field. AUTH needs in-transit encryption, and today users (RBAC) are the way to log in; serverless caches only take RBAC. Use one endpoint, with cluster mode off. Through the tunnel, TLS Required checks the certificate against the host you type: use the endpoint's name as the agent's --target and as the host, not localhost. |
| A server with its own certificate | If the certificate carries the server's name: TLS Required, with that certificate pasted in the CA box. If it doesn't: use a tunnel, with TLS Off, because the tunnel already encrypts the connection. |
| A Redis server on your own network | Use a tunnel, with TLS Off, and the host localhost: see Tunnels. A local server often has no password: that is allowed, with a warning. |
| Valkey | It speaks the same protocol, so the node works with it. Fill the credential the same way; Test shows the server's own name and version, e.g. Valkey 8.0. |
Where HostWebhook connects from
HostWebhook only connects to public hosts. It looks up the name, checks the address it got and connects to that same address, so a name can't answer one thing for the check and another for the connection. A name that resolves to a private address, a loopback address (localhost, 127.0.0.1) or a metadata address is refused when you save the credential and every time it connects; a step that hits it shows “Can't connect to that Redis host: it doesn't resolve to a public address. HostWebhook only connects to public hosts (for something on a private network, use a tunnel).” If your provider filters by IP, allow HostWebhook's static egress IP, which you find in the banner when you create a database credential.
For a server on a homelab, a VPC (Amazon ElastiCache lives in one) or a Mac on your desk, run hostwh expose-tcp --target=localhost:6379 --id=prod-redis (or the Docker agent ghcr.io/hostwebhook/agent) on a machine that can reach the server — for ElastiCache, inside the VPC. Check in Settings → Tunnels that it shows online, and pick it in the Tunnel field of the credential. The steps are in Reverse tunnel for databases. With a tunnel the destination is your own network, so HostWebhook doesn't check the address; the host is then the one you type, e.g. localhost. Putting, changing or removing a tunnel asks for the password again, in the same request: the tunnel decides where the password travels.
2. Test the connection
Test connection on the credential page sends PING and HELLO (to ask the server for its version), and SELECT when the database number isn't 0. It shows one line with the server's name and version, the TLS and the user, e.g. Valkey server 8.0.1 · TLS · user default; a Redis server shows its own name and version in the same place, and a server that doesn't say what it is shows Connected instead. If the server refuses a command, the test says so with the lines of When your Redis server says no.
What HostWebhook keeps
user:ana@example.com). An error doesn't repeat a value either.The Redis user
Give HostWebhook a user of its own, with only what the flow needs. ACL users exist on servers of version 6 or later, on Redis Cloud, on Amazon ElastiCache with RBAC and, on Upstash, on its paid databases:
ACL SETUSER hostwebhook reset on >… ~cart:* ~orders resetchannels ¬ifications +@read +@write +publish -@dangerous -@scripting +ping +hello +select~cart:*and~ordersare the keys it can touch, and¬ificationsthe channel it can publish to. Change them to your own.resetgoes first becauseACL SETUSERon a user that already exists only adds rules: it would keep the permissions the user had.resetchannelsgoes before the channel because, in Redis 6.2, a new user can use every channel until you reset them, and¬ificationsgives an error. Channels need version 6.2 or later: on 6.0 leave outresetchannelsand¬ifications.PUBLISHisn't in@writebut in@pubsub, so+publishgoes apart: add it, and the channel, only if a flow publishes.-@scriptingtakes away the commands that run scripts or change the server's functions, which-@dangerousdoesn't cover: the functions that@writelets through (FUNCTION LOAD,FUNCTION DELETE,FUNCTION FLUSHandFUNCTION RESTORE) and the scripts themselves (EVAL,FCALLand their_ROforms).+ping +hello +selectare the commands of Test connection: PING, HELLO and SELECT. SELECT only matters when the database number isn't 0. They come last, after the minus rules, on purpose: ACL rules apply from left to right, so keep the order of the line.- A trigger only needs
+xread +xrevrange +xinfo +typeon its stream, and+selectif the database number isn't 0. Test connection also sendsPING, so to test with a user that only has those permissions, add+ping. - An AI toolkit needs the permissions for the key prefixes on its list, and no more.
- Never
+@adminor+@dangerous(FLUSHALL,CONFIG,KEYS,DEBUG). - With no ACL (a free plan, say) there is no user to limit the AI: the key prefixes of the AI toolkit are its only limit.
Operations
Drop a Redis node, pick the credential, choose Single operation (or AI toolkit) and an operation. There are 22, in 6 groups. The Key takes templates, e.g. cart:{{payload.userId}}, and the Browse button next to it runs Find keys on a prefix, so you can pick an example key.
| In the dropdown | What it does | Fields | Comes back as |
|---|---|---|---|
| Keys | |||
| Get value | Reads one key as text. With Parse JSON, a value that is JSON comes back as an object. | Key · Parse JSON | value (null if the key isn't there) · exists · type |
| Set value | Writes one key. An object is saved as JSON. | Key · Value · Expire after · Only if · Keep the current expiry | ok |
| Delete keys | Deletes one key or a list of them (with UNLINK). | Keys | deleted |
| Set expiry | Gives a key a time to live, or removes it with Never expire (PERSIST). | Key · Seconds · Never expire | ok |
| Get expiry | How many seconds a key has left. | Key | seconds (-1 = no expiry, -2 = no such key) |
| Increment | Adds a whole or decimal number to the value of a key. Expire after, only when created, sets the expiry just the first time, on any server version. | Key · By · Expire after, only when created | value |
| Get many | Reads up to 1,000 keys at once (MGET). | Keys · Parse JSON | each key with its value |
| Find keys | Lists the keys that start with a prefix, with SCAN and never KEYS. Up to 1,000. | Prefix · Type | keys · truncated |
| Hashes | |||
| Get hash | Reads a hash as an object. Fields empty means all of them. | Key · Fields · Parse JSON | the object |
| Set hash fields | Writes the fields you give, as field → value. | Key · Fields | added |
| Delete hash fields | Deletes the fields you list. | Key · Fields | deleted |
| Increment hash field | Adds a number to one field of a hash. | Key · Field · By | value |
| Lists | |||
| Push to list | Adds values at the start or at the end of a list. | Key · Values · Side | length |
| Pop from list | Takes values off the start or the end of a list. They are removed from it. | Key · Side · Count | items |
| Get list | Reads a range of a list, up to 1,000 items. | Key · Start · Stop | items · length |
| Sets | |||
| Add to set | Adds members to a set. | Key · Members | added |
| Remove from set | Removes members from a set. | Key · Members | removed |
| Get set | All the members of a set, up to 1,000 (SSCAN). | Key | members |
| Check members | Says, for each member you give, whether it is in the set (SMISMEMBER, needs a server of version 6.2 or later). | Key · Members | each member → yes or no |
| Pub/Sub | |||
| Publish | Sends a message to a channel. Only clients listening right now get it: use Add to stream to keep it. An object goes as JSON. | Channel · Message | receivers (how many clients got it) |
| Streams | |||
| Add to stream | Adds one entry to a stream (XADD) and gives back its id. Keep at most trims the stream (MAXLEN ~ N). | Key · Fields · Keep at most | id |
| Read stream | Reads the entries between two ids, up to 1,000. | Key · From · To · Count | entries |
Filling in the fields
- Values are text (UTF-8). An object you give as the value is saved as JSON. Parse JSON in Get value brings it back as an object. A value that isn't valid UTF-8 comes back in base64, marked with
encoding: "base64". - Set value: Expire after is in seconds, e.g.
3600is one hour, and empty means never. Only if is Always (overwrite), Only if new (keep what is there, e.g. a lock; NX) or Only if it exists (write only when the key is already there; XX). Keep the current expiry overwrites the value and leaves the time to live alone (KEEPTTL). For a cache, always set an expiry. - Increment takes a whole or a decimal number in By. For a counter per window — a limit of requests per hour, say — give Expire after, only when created: the key gets its expiry the first time and keeps it as it counts.
- Find keys takes a prefix, e.g.
cart:(not a pattern:*and?count as themselves), and a Type if you want only one. It uses SCAN, never KEYS (which blocks a big server), and gives up to 1,000 keys;truncatedsays whether there were more. Narrow the prefix to see them. - Delete keys, Delete hash fields, Pop from list and Remove from set remove data for good: there is no undo. Set expiry makes a key disappear when its time runs out.
- Publish only reaches the clients listening at that moment: nobody listening, nothing kept.
receiverssays how many got it. To keep a message, use Add to stream. - Add to stream takes the entry as field → value, and Keep at most trims the stream to about that many entries (
MAXLEN ~ N). It gives back the entry's id. - Sizes. Reads give up to 1,000 elements and are cut at 5 MB for an answer. A huge hash is cut, and the answer says so.
- The wrong type gives a clear error that says what to use: “cart:42 is a hash, not text. Use Get hash.”
When your Redis server says no
- The user or the password was rejected. “The Redis server rejected the user or password. Reconnect the credential.” It comes with a Reconnect button, which opens Edit keys and settings, and a trigger that gets it pauses.
- The user can't do that. “This Redis user can't run GET on cart:42. Give it access, or use another user.” It names the command and the key.
- The key holds another type. “cart:42 is a hash, not text. Use Get hash.”
- The certificate can't be checked. “The certificate couldn't be checked. Paste your provider's CA, or connect through a HostWebhook tunnel.”
- A private host. “Can't connect to that Redis host: it doesn't resolve to a public address. HostWebhook only connects to public hosts (for something on a private network, use a tunnel).”
- A cluster. “Redis Cluster isn't supported yet. Use a single endpoint, e.g. ElastiCache with cluster mode off.” It appears when the server sends the step to another node of a cluster.
- The database number isn't available. “The Redis server would not use database 5. Some providers only have database 0 (Upstash, a cluster), and the user needs permission to run SELECT. Change the database or the user.” Some providers only have database 0, and the user needs permission to run SELECT.
- A replica. “This Redis database is read-only (a replica). Use its primary endpoint.”
- The server doesn't answer. Connecting and every command have 10 seconds. With no connection a step fails at once; it doesn't wait in a queue.
A failed step shows only HostWebhook's own line, which says what to do. It never repeats a value.
AI toolkit mode
Once the credential is picked, the node asks for a Mode. AI toolkit turns it into 14 tools that an AI Node — or an MCP client, through one of your MCP servers — calls by name: an assistant that keeps a cart in a cache or counts something. The model never writes a command of its own: each tool runs fixed commands that HostWebhook builds, and KEYS, FLUSHALL, CONFIG and EVAL are in none of them.
| Tool | What it does | Class | At the start |
|---|---|---|---|
| get_redis_value | Reads a key of any type (text, hash, list, set or stream), up to 200 elements, with its type and its expiry. | read | Open |
| find_redis_keys | SCAN, only inside the prefixes you allow, up to 200 keys. | read | Open |
| add_redis_list_items | Adds items to a list. | write | Open |
| add_redis_set_members | Adds members to a set. | write | Open |
| add_redis_stream_entry | Adds an entry to a stream. | write | Open |
| set_redis_value | Writes a key, with an expiry. “Only if it doesn't exist” is an argument. | destructive | Open |
| set_redis_hash_fields | Writes fields of a hash. | destructive | Open |
| increment_redis_value | Adds a number to a text value or to a field of a hash. | destructive | Open |
| delete_redis_keys | Deletes keys. | destructive | Blocked |
| delete_redis_hash_fields | Deletes fields of a hash. | destructive | Blocked |
| pop_redis_list_items | Takes items off a list, which removes them. | destructive | Blocked |
| remove_redis_set_members | Removes members from a set. | destructive | Blocked |
| expire_redis_keys | Gives keys a time to live, after which they are deleted. | destructive | Blocked |
| publish_redis_message | Sends a message to a channel. | write | Blocked |
What you control
- Keys the AI can use. One prefix per line, e.g.
cart:. The AI touches only keys that start with one of them. Empty means none: until you add a prefix, its tools refuse. Every key of every call has to start with one, also in the calls that take several keys, and it is checked before HostWebhook connects. They are prefixes, not patterns with a*in the middle: a prefix is checked exactly, and Find keys looks for it literally (the*,?,[and\of a prefix don't work as wildcards). The AI knows what it can use: the description of each tool carries the prefixes and the channels, and a refusal names them, so it doesn't have to guess. - Channels the AI can publish to. One channel name per line, e.g.
notifications, exact. Empty means none. It matters only if you unlockpublish_redis_message. - Blocked tools. The ones that delete or can't be undone start blocked:
delete_redis_keys,delete_redis_hash_fields,pop_redis_list_items,remove_redis_set_membersandexpire_redis_keys, and alsopublish_redis_message, because a message reaches other systems and can't be taken back. Turn one on only if the agent should.set_redis_value,set_redis_hash_fieldsandincrement_redis_valuestart open: they overwrite, but that is what a cache or a counter does. The AI Node's Block destructive tool calls switch stops them when it is on. Block any other under Block these tool calls. - In MCP the tools come with the same classes: reads go through
run_read_operation, adding throughrun_write_operation, and what overwrites or deletes (set, increment, delete, pop, remove, expire) throughrun_destructive_operation.publish_redis_messageis a write that starts blocked. Claude, through the connector, shows the step and its error.
What goes back to the model
- Reads give up to 200 elements (Find keys, 200 keys), with the type and the expiry, and no more than HostWebhook's cap on the size of an answer.
- The values are data your app's users wrote, not instructions. The description of each tool tells the model so, but a model can still be fooled by text in a value: block the tools it doesn't need.
- If a flow reads values and a later AI step uses them, they go to that AI: see Redis data and AI.
Testing a tool
operation in their payload that names another tool is refused.{ "operation": "get_redis_value", "key": "cart:42" }The trigger
Pick the Redis service on a Trigger node, with a Redis credential. It watches one stream and sends each new entry to the flow. HostWebhook checks the stream on a timer and keeps its own cursor — the id of the last entry it saw — so it writes nothing to your server: no consumer group, no setting changed, and a user that can only read is enough. A restart of HostWebhook, a deploy included, loses nothing. Deactivating or deleting the trigger stops it.
What fires it
- Event Trigger is New stream entries: one run for each entry added to the stream, e.g. each
XADDtoorders. - Stream — The key of the stream to watch, picked from your server (the list shows only keys whose type is stream) or typed.
- Check every, in seconds — 300 by default (every 5 minutes, like every polling trigger). It can't be under 60 seconds, and your plan sets the minimum: the paid plans can check every minute and the Free plan every 15 minutes.
- Entries per check — The most entries one check sends to the flow: from 1 to 500. If more arrived, the next check continues where this one stopped.
- Start with the last entries — From 0 to 500. With a number above 0, the latest entries already in the stream run first, then the new ones.
- Ignore changes made by this flow — On by default: see below.
- Only entries added after you activate it fire the flow: the cursor starts at the latest entry of the stream. With Start with the last entries above 0, that many of the latest entries run first.
- If the key isn't there yet, the trigger waits: the first
XADDcreates it. If the key holds another type, the trigger pauses and says so.
Entries removed before HostWebhook reads them
MAXLEN, MINID or XDEL). If your app trims the stream faster than the trigger checks it, the entries in between never reach the flow. Leave room in the stream for everything that arrives between two checks, or check more often.HostWebhook looks for this once an hour: if the server says an entry newer than the cursor was removed, the trigger's card warns “Some entries were removed from orders before HostWebhook read them.” This check needs a server of version 7.0 or later.
Ignore changes made by this flow
On by default. Entries this flow's Redis nodes add with Add to stream don't fire it, so a flow that adds to the stream it watches doesn't start itself forever. The node gets the entry's id back from the server and HostWebhook remembers it — the trigger, the connection, the key and the id — so the check skips exactly that entry: it doesn't depend on the time or the content, and an entry that someone else adds a moment later does fire. It remembers each id from 24 to 49 hours. Only the same connection counts. If HostWebhook can't remember an entry the flow wrote, the trigger may fire on it: it errs on firing too often, never too little. The trigger's card counts the entries it skipped.
Why streams, and not Pub/Sub
- Pub/Sub delivers at most once. If nobody is listening when a message is published, it is lost for good. Listening would take a connection open for each trigger, all the time, and every deploy of HostWebhook cuts it: everything published meanwhile would be lost without a trace. A stream keeps the entries, so a restart loses nothing.
- Keyspace notifications go through Pub/Sub, so the same applies. They also come turned off, turning them on changes your server's configuration, they tell the name of the key and the event but not the value, and an expiry notice arrives when the server deletes the key, not when its time runs out.
- No consumer group. A group would need a user that can write and a group created on your server. The cursor lives in HostWebhook instead, so other consumers of the stream aren't affected.
- A list as a queue isn't a trigger either: taking items off a list removes them, and that clashes with whatever else reads it.
To react to your own events with HostWebhook, publish them as a stream entry instead of a message:
XADD orders * orderId 1042 status paidWhat the trigger sends downstream
{
"stream": "orders",
"id": "1793872800000-0",
"timestamp": "2026-11-05T10:00:00.000Z",
"fields": { "orderId": "1042", "status": "new" }
}stream is the key of the stream. id is the entry's id: it only grows, and its first part is a time in milliseconds. fields are the entry's fields, as text (or marked base64 when a value isn't valid UTF-8); use {{payload.fields.status}}. timestamp is the time of the id. Each entry runs once, with one rare exception: if HostWebhook stops after sending a batch and before saving the cursor, that batch can run twice. If that matters, tell the runs apart by {{payload.id}}.
Trying it out
The trigger's Test push shows the latest entries of the stream (up to 10), as they will arrive, so you can write {{payload.fields.status}} in the nodes below it from the start. Nothing is sent to the flow.
When a trigger pauses
If a check finds that the user or the password stopped working, the trigger is paused with a Reconnect button, and its card says why — “Paused: The Redis server rejected the user or password. Reconnect the credential.” Other things pause a trigger, each with its own line:
- The user can't run a command the trigger needs: the card names it (
XREAD, say). Give the user access, or use another user. - The key holds something that isn't a stream.
- The server sends the check to another node of a cluster (“Redis Cluster isn't supported yet. Use a single endpoint, e.g. ElastiCache with cluster mode off.”), or the host isn't a public one any more (“Can't connect to that Redis host: it doesn't resolve to a public address. HostWebhook only connects to public hosts (for something on a private network, use a tunnel).”).
Any other failure of a check, a network error say, is tried again at the next check. After 5 failed checks in a row the trigger pauses with “Paused after 5 failed checks in a row. Fix the cause and turn it back on.”
Memory of an AI Node in your Redis database
The AI Node can keep its conversations in your Redis database instead of in ours: turn Memory on in its Memory tab and pick Redis database. Each conversation is one list of its latest turns (what a person said and the answer to it), saved with your credential. It recalls them by recency — the last turns of that conversation, in order — so it works on any server, Upstash included, and it calculates no embeddings: nothing goes to an embeddings provider.
Set it up
- In the AI Node's Memory tab, turn Memory on and choose Redis database.
- Redis connection: the credential from Setup. Its user needs the commands of the Redis user for the memory.
- Key prefix: fixed text that ends with a colon,
hostwebhook:memory:to start. It holds letters, numbers and. _ : / -, up to 100 characters, and it is never a template. HostWebhook adds the node and the conversation to it. Pick one that nothing else of yours uses. - Keep a conversation for: counted from the last message of the conversation. It is 30 days until you choose, from 1 hour to 365 days, or Never, which you choose on purpose and which keeps the conversation until you delete it.
- Turns kept per conversation: the latest 100 turns to start, 1,000 at most. A turn is what a person said and the answer to it. When a conversation passes it, its oldest turns are dropped.
- Session ID: what identifies one conversation, usually a template of the event like
{{payload.from}}. Empty means one conversation for the whole node.
AI-extracted facts isn't offered with this memory: it needs embeddings, and this one recalls the latest turns instead.
What is saved in your database
| Key | Type | What it holds |
|---|---|---|
| hostwebhook:memory:{<node id>}:<32 characters> | list | The turns of one conversation, each as JSON with its role (turn), its content (the question and the answer) and its time. |
| hostwebhook:memory:{<node id>}:sessions | sorted set | Each conversation and when its last message was written, so the Memory tab can list them. |
| hostwebhook:memory:{<node id>}:names | hash | The real Session ID of each conversation, so the Memory tab can show it. |
The 32 characters of a conversation's key are a hash of its Session ID (SHA-256). A Session ID is often a phone number or an email address, and the name of a key shows up in SCAN, in your server's slow log and in your provider's tools: the key never carries it. The braces around the node id make the keys of one node land in the same slot, so they work behind the proxy of a cluster service too.
The real Session IDs are in your database, in the names hash. That index lives up to 365 days after the last message of the node, even when a conversation is kept for 1 hour, so that it never disappears before a longer one. When the Memory tab is opened, it removes the entries of the conversations whose list has already expired. To remove them sooner, forget the conversation or empty the node in the Memory tab, or delete the sessions and names keys. If a Session ID is a phone number or an email address and you need to keep them out of your database, use a template that is not one, e.g. an internal id.
Limits
- A turn longer than 16 KB is cut and ends with
[cut]; with a long question, the answer may not be kept. - At most 1,000 turns per conversation, so 16 MB for one conversation at most.
- A turn that repeats the last one isn't written twice.
- A single Session ID can have up to 4,096 characters; a longer one is refused, not cut, so two different ones never share a conversation.
The Memory tab
Under Settings → AI Memory, each node lists its conversations with their real Session ID, and you can read the turns (newest first), forget one conversation, delete what is older than 7, 30 or 90 days, or empty the node. What you delete goes from your Redis database. Deleting a single turn isn't available with this memory: a list has no id for one.
If your database doesn't answer
The node still answers, just without its memory, and Monitoring shows an AI Memory warning with the reason. A password the server rejects shows up in that warning (“… Reconnect the credential.”): open the credential and click Edit keys and settings. If a key under the prefix isn't what HostWebhook wrote (WRONGTYPE), the line says to pick another key prefix.
The Redis user for the memory
Give the memory a user of its own, with only these commands and only the keys under its prefix:
ACL SETUSER hostwebhook-memory reset on >CHANGE-ME-to-a-long-random-password +rpush +ltrim +lrange +llen +expire +persist +zadd +zrevrange +zrangebyscore +zrem +hset +hmget +hdel +unlink +scan +ping +hello +select ~hostwebhook:memory:*~hostwebhook:memory:*is your key prefix. Change it, and the name of the user, to your own.resetgoes first for the reason in The Redis user: on a user that already exists,ACL SETUSERonly adds rules.+selectonly matters when the database number isn't 0.- There is no
MULTI, no@dangerousand no command for the keys of anything else.
A prefix that no one else can read
If the Keys the AI can use of a Redis node in AI toolkit mode included the memory's prefix (say hostwebhook:), an AI Node, and so anyone who talks to the bot, could read the conversations of the other sessions. So HostWebhook refuses it from both sides, with the same connection: a toolkit can't be saved with a prefix that covers a memory or a vector store, and a memory can't be saved under a prefix that a toolkit covers, or that another memory or a vector store holds. The line is “These keys hold the conversations of an AI Node's memory. Pick a prefix that doesn't include them.”
Deleting the node, and the account
Deleting an AI Node empties its keys in your Redis database when the server answers (it reads them with SCAN and removes them with UNLINK, only the node's own). If it doesn't answer, the node is deleted anyway and its keys stay: delete them from your side by their prefix. Deleting the whole account can't empty your Redis database, because there is no account left to connect with, as with your own MongoDB or PostgreSQL.
What it keeps, and where
The memory holds what people said and what the AI answered, in a server of yours, for the time you chose (30 days to start). It is your database and your decision, as with your own MongoDB or PostgreSQL. HostWebhook keeps no copy, and its logs hold only counts, sizes and times: never a message, a Session ID or a full key name.
A vector store in your Redis database
A vector store can keep its chunks and their vectors in your Redis database, and search them by meaning from the Vector Store node and as a tool of the AI Node. Storage lives in your server, so it doesn't count against your plan. It uses the search commands of the server, which not every server has: Test connection tells you whether yours does.
Which servers work
| Server | Memory | Vector store |
|---|---|---|
| A Redis server 8 or later | Yes | Yes: the search commands come with it |
| A Redis server with the search module (Redis Stack) | Yes | Yes |
| Redis Cloud and Redis Software | Yes | Yes |
| Valkey with search: Amazon ElastiCache for Valkey 8.2 or later, Google Memorystore for Valkey | Yes | Yes. Filtering by a Text field (a tag) needs valkey-search 1.1 or later: 1.0 can crash on it, so HostWebhook refuses it on 1.0. If the server doesn't say which version it runs, HostWebhook asks it with one small test search first, and refuses the filter if the server answers like 1.0 or doesn't answer. Numbers work on any version |
| Upstash | Yes | No: it has its own vector commands, which HostWebhook doesn't support yet |
| A Redis server 7 with no modules, Valkey without search, KeyDB, Dragonfly | Yes | No |
| Redis Cluster | Not yet | Not yet |
This is what each provider documents as of 10 November 2026. HostWebhook hasn't tried vector search on every one of them, so trust the Test over this table. A Redis Cluster isn't supported yet, for the memory or for a vector store.
Create the store
Under Settings → Vector Stores → New, choose the embedding provider and model, then Redis database (your own) as the backend:
- Redis connection: the credential from Setup, with a user as in The Redis user for a vector store.
- Index name: letters, numbers and
_ : -only, up to 64, likehostwebhook_docs. Empty and HostWebhook picks one for the store. - Key prefix: fixed text that ends with a colon, like
hostwebhook:vec:docs:. HostWebhook adds the chunk id to it. Empty and HostWebhook picks one for the store. - Metadata fields: up to 10 fields you can filter by, each one Text or Number, with a name that starts with a letter (letters, numbers and
_, up to 32). They can't change after the store is created. - Embedding dimensions aren't typed: the model you chose fixes how many numbers a vector has, and the index is made for exactly that many.
- Click Test connection, then Create store.
Test connection answers with one line about the search commands:
- “Vector search: available.”
- “This Redis server has no vector search. Use a Redis server 8 or later (or one with the search module), a Redis Cloud database or a Valkey server with search. Chat memory still works.”
- “This Redis user can't run search commands. Give it +@search, or use another user.”
Creating the store refuses what the Test refuses. The Test checks the server, the user and the prefix; creating also reads every other search index of the server, and stops if this user can't read one. On Upstash, which has its own vector commands that HostWebhook doesn't support yet, the Test fails with a line that says the database answered with an error. Creating also says so if the index name is already used by another schema (“Index hostwebhook_docs already exists with another schema. Pick another index name.”), if the server has reached its limit of indexes (“This Redis server has reached its limit of search indexes. Delete one you do not use, or use another server.”), or if the prefix would take keys that another store holds (“Another store already uses keys under this prefix. Pick another prefix.”), keys of an AI node's memory (“These keys hold the conversations of an AI Node's memory. Pick a prefix that doesn't include them.”) or keys of an AI toolkit (“A Redis node in AI toolkit mode uses keys under this prefix. Pick another prefix.”), or that another index of your server already covers (“Another search index of this Redis server already covers keys under this prefix. Pick another prefix.”): an index indexes every hash under its prefix, so two prefixes where one starts with the other would mix their chunks. HostWebhook looks at the indexes of your server before it saves the store, and if it can't read them it stops, instead of guessing.
What HostWebhook creates in your database
- One index for the store, with a fixed shape: HNSW, 32-bit floats and cosine distance, the defaults of the server (
M 16,EF_CONSTRUCTION 200), and no text fields, so it works on every server of the table above. There is nothing to choose. - One hash for each chunk, under the prefix: its text, its metadata as JSON, its vector (exactly 4 bytes for each number), the document it comes from (id and name), a hash of its content, its size and its time, and each metadata field you declared, on its own, to filter on.
- A counter of the store's size, outside the prefix (the prefix with its colon replaced by
#stats): a counter inside it would be indexed like a chunk.
The vector is checked when the store is created and at every insert. If the model gives a different number of numbers than the index holds, the insert says “This embedding model gives vectors of 1536 numbers and the index holds 768. Create a new store.” (with your own numbers).
Filters
A search can be narrowed by the document a chunk comes from (its id or its name) and by the metadata fields you declared when you created the store. A Text field matches an exact value, like a language; a Number field matches an exact number, like a year. Your server only filters on indexed fields, so a field the store didn't declare can't be filtered on afterwards: create a new store with it. The Metadata filter of the Vector Store node uses these names. A document is matched by its id or its name exactly as written: Q1,2024.pdf and Q1 2024.pdf are two documents, and an id or a name of more than 1,024 characters is refused before anything is sent.
Limits
- The text of one chunk, up to 64 KB; the metadata of one chunk as JSON, up to 32 KB.
- A query returns up to 50 matches. The score goes from 0 to 1 and Min score means the same as on the other backends.
- Chunks go in in batches of 100, a search waits 5 seconds at most, and vectors have up to 8,192 numbers.
- Searching the Content tab by text looks only at the chunks on the page being read: the index has no text fields. On Valkey 8.2 the order of that tab may be approximate.
- The size of the store is a counter kept outside the prefix: deleting by document lowers it, deleting one chunk by its id doesn't until the store is flushed. It is for you to see; it doesn't count against any quota of your plan.
- A chunk keeps no document type (
sourceDocType) when it lives in Redis, and its token count is an estimate from the text.
The Redis user for a vector store
ACL SETUSER hostwebhook-vector reset on >CHANGE-ME-to-a-long-random-password +@search +hset +hincrby +hget +unlink +scan +ping +hello +select ~hostwebhook:vec:docs:* ~hostwebhook:vec:docs#stats+@searchare the search commands (in Redis 8 and in Valkey they are in that category). On Valkey and on Redis 8, a user needs access to all the keys of an index's prefix to use it, which is exactly~hostwebhook:vec:docs:*. With this user, a store can't be created while the server has another search index under a prefix the user can't reach: create the store with a user that reaches those prefixes too.- The second key pattern is the store's counter. Change both to your own prefix.
+selectonly matters when the database number isn't 0. Valkey 8.2 allows up to 10 indexes on a server, so an eleventh store is refused by the server with its own line.
Deleting a store: your data stays, or goes too
Because the chunks are in your database, deleting the store asks you what to do with them, and it never chooses for you:
- Delete store, keep my data (the main button, and the one the Enter key takes). HostWebhook stops using the store and forgets it. Your Redis database isn't touched: the index and the chunks stay, and you can use them anywhere else.
- Also delete my data. HostWebhook removes the chunks under this store's prefix first, in batches, and then drops the index (without deleting its documents) and removes the store's counter, and nothing else. It checks that each key is one of the store's chunks (a hash with a vector of the right size) before it removes it, so a key of your own application under the same prefix stays. It handles up to 100,000 chunks in one go: above that it stops with a line, instead of leaving half of them and looking done. It can't be undone.
A store that HostWebhook keeps in its storage is deleted with its chunks, as before, and closing your account never touches your Redis database. Flush deletes the chunks and keeps the store.
What isn't here yet
- Upstash has its own vector commands. It keeps the memory of an AI Node, but not a vector store yet.
- The algorithm and the distance are fixed (HNSW, cosine). Other choices come when someone needs them.
- Redis Cluster isn't supported for the memory or for a vector store.
Redis data and AI
The values in your database are your own data, so HostWebhook doesn't hide them from AI the way it hides Google user data. If a flow reads them and a later step uses AI — the AI Node with your own provider credential, Hermes, our in-app assistant, Claude through the connector, an MCP client you connect, or a voice agent — what the flow read goes to that AI, under its terms. The memory of an AI Node and a vector store are the same: what they hold is read by the AI that answers with it. Decide which key prefixes an AI toolkit may touch, and what your flows send on. What a flow reads stays in your run history for your plan's retention period and is then deleted.
Limits and what each thing costs
Your provider sets what your database can take, and some charge for each command. Upstash gives 500,000 commands a month free and then charges 0.20 USD for every 100,000 (as of 3 November 2026: see its pricing page), which is why the commands each thing takes are listed here.
| What | How much |
|---|---|
| Connecting, and each command | 10 seconds |
| Connections | One for each credential in each of HostWebhook's workers, shared by everything that uses the credential, and closed after 60 seconds without use |
| A node operation | From 1 to 3 commands |
| Reading | Up to 1,000 elements for each operation (keys, list items, set members, hash fields, stream entries), and 5 MB for an answer |
| The AI toolkit | 1 or 2 commands for each call, up to 200 elements and the same 5 MB |
| Test connection | 2 commands: PING and HELLO. A third one, SELECT, only when the database number isn't 0 |
| The trigger | Usually 1 command for each check (it reads 100 entries at a time, so a check that picks up 500 entries takes 5) and 1 more each hour, to look for removed entries. Checking every 5 minutes, the default, is about 9,400 commands a month; every minute, about 44,000 |
| The trigger's clock | Checks every 5 minutes by default, and not more often than your plan allows (1 minute on the paid plans, 15 minutes on Free); from 1 to 500 entries for each check; from 0 to 500 entries to start with |
| Remembered ids (Ignore changes made by this flow) | From 24 to 49 hours, with a cap for each trigger and for each organization |
At the default of 5 minutes a trigger takes about 9,400 commands a month, far inside Upstash's free 500,000. A longer interval takes fewer.
Gotchas
- One endpoint, and database 0 on most providers. Upstash, Redis Cloud and a cluster only have database 0, and a Redis Cluster isn't supported yet: use a single endpoint.
- Values are text. Parse JSON in Get value turns a JSON value into an object, and a value that isn't valid UTF-8 comes back in base64, marked.
- Publish isn't kept. Only clients listening at that moment get it. Use Add to stream to keep a message, and the trigger to react to it.
- A cache without an expiry never empties. Always give Set value an Expire after, and give a counter per window an Expire after, only when created.
- A key can carry personal data (
user:ana@example.com). HostWebhook keeps keys and values out of its logs, but a flow that reads them keeps them in its run history. - If your app trims the stream a trigger watches, entries it hasn't read yet can be lost: see Entries removed before HostWebhook reads them.
- If you change the password in your database, the nodes fail with the user-or-password line, and a trigger that gets it pauses with a Reconnect button: the new password goes in Edit keys and settings.
- Find keys on a huge database reads it in steps and stops at 1,000 keys: give it a prefix.
- A memory or a vector store needs a prefix of its own. One that another memory, a store or an AI toolkit covers is refused: see A prefix that no one else can read.
- A memory with Never keeps every conversation until you delete it, so the database grows without limit. The default of 30 days doesn't.
- Choosing Also delete my data when you delete a vector store removes the chunks from your database for good.
What isn't here yet
- No “Run command”, on purpose. A command of your own includes
FLUSHALL,CONFIG SET,KEYS *(which blocks a big server) andEVAL. The operations above cover what a flow normally does. - Sorted sets (
ZADD,ZRANGE), MULTI/EXEC, Lua scripts and modules (JSON, Search) aren't covered by the node. A vector store does use the search commands, on its own. - Redis Cluster and Redis Sentinel aren't supported yet.
- The trigger watches streams only. Pub/Sub, keyspace notifications and a list used as a queue aren't triggers: see Why streams, and not Pub/Sub.
- A vector store on Upstash: its own vector commands aren't supported yet (the AI Node's memory does work there).
Redis is a registered trademark of Redis Ltd. Any rights therein are reserved to Redis Ltd.
Redis does not sponsor or endorse HostWebhook or its Redis integration.