Using record steps (upsert/retrieve)
Using record steps (upsert/retrieve)
Using record steps (upsert/retrieve)
Record steps let Flows interact with Runtype’s Record store to retrieve data, save results, or search for relevant information.
Records are structured data entries with JSON metadata. Use them to store customer data, knowledge bases, Product catalogs, or any information your Flows need to reference.
See What are Records? for a full overview.
Fetch a specific Record by ID or unique field.
id, email){{customerId}})The step returns the matching Record or null if not found.
Reference the step’s outputVariable name directly:
Create a new Record or update an existing one.
outputVariable name from a prior step that contains a JSON objectThe sourceVariable must point to a JSON object from a previous step. For example, if a prompt step outputs JSON to analysis_result, use analysis_result as the source variable.
If the unique field matches an existing Record, it is updated. Otherwise, a new Record is created.
Important: The sourceVariable must reference a JSON object, not a plain text string. If using a prompt step to produce the data, set responseFormat to json.
Find Records by semantic similarity using vector embeddings. This works with your connected vector store (Weaviate, Pinecone, pgvector, or Cloudflare Vectorize).
Vector search returns an array of matching Records:
Common workflow for question answering with Records:
Example prompt:
For semantic search, Records must have embeddings. Use the Generate Embedding and Store Vector steps to index content.
Handle missing Records: