RAG & Search
Perform semantic search and retrieval in Make scenarios
RAG & Search Modules
Use AgentBrains retrieval modules inside Make scenarios to access text and image databases semantically.
Retrieve Text from RAG
Searches an AgentBrains text index and returns relevant text chunks.
Inputs
| Field | Description |
|---|---|
| Index | Choose Core desired index |
| Query | Natural-language search query |
| Top K | Number of retrieval results to return |
Output
Returns:
success(Boolean)results[](Array of results)idscoremetadatatext(The actual context string)namesourceblobTypetags
Use results[].metadata.text as context for LLM prompts.
Using Retrieve Text from RAG as a Make AI Agent tool
- Add the module as a tool.
- Select the Index Source.
- Choose a Custom Index if needed.
- Allow the AI Agent to fill the Query field.
- Set Top K to a reasonable value, such as 5.
Retrieve Images from RAG
Searches image assets in AgentBrains and returns relevant image retrieval results.
Inputs
| Field | Description |
|---|---|
| Query | Natural-language image search query |
| Top K | Number of image results to return |
Output
Returns:
successresults[]idscoremetadata
Use this module when an agent needs to find relevant diagrams, product images, screenshots, or visual references.
Recommended RAG workflow patterns
1. Synchronous AI Employee response flow
Use this when AgentBrains or another system sends a customer message to Make and expects a JSON response.
Webhooks — Custom webhook
AgentBrains — Retrieve Text from RAG
Make AI Agent or LLM module
Webhooks — Webhook response
The final webhook response should return:
{
"message": "The generated reply to send back to the customer."
}JSON Mapping Tip
When mapping generated text into JSON, make sure the value is valid JSON and escapes quotes, line breaks, and special characters.
2. RAG answer flow
Use Retrieve Text from RAG when the user asks a broad question and the workflow needs relevant context from the Knowledge Base.
Trigger ➔ AgentBrains: Retrieve Text from RAG ➔ AI Agent/LLM ➔ OutputUse the returned result metadata text as the context for the model.
3. Text + image answer flow
Use Retrieve Text from RAG and Retrieve Images from RAG together when the answer may need both explanation and visual assets.
Trigger ➔ AgentBrains: Retrieve Text ➔ AgentBrains: Retrieve Images ➔ AI Agent/LLM ➔ OutputThis is useful for product photos, technical diagrams, screenshots, setup instructions, and visual troubleshooting.
4. Employee-configured agent flow
Use Get an employee configuration when the Make scenario should follow centrally managed AgentBrains Employee settings.
Trigger ➔ AgentBrains: Get Employee Config ➔ AgentBrains: Retrieve Text ➔ AI Agent/LLM ➔ OutputThis lets business users update Employee configuration in AgentBrains without editing the Make scenario.