What you will build
Section titled “What you will build”By the end of this tutorial, you will have:
- Enabled RAG for your Opal instance
- Connected your CMP content library as a data source
- Tested retrieval accuracy with real queries
- Configured agents to use retrieved content in their responses
Without RAG, Opal generates responses from its general training data. With RAG, Opal searches your campaigns, assets, briefs, and metadata before responding — producing output that reflects your brand, your data, and your current work.
Before you start
Section titled “Before you start”Ensure you have:
- Opal Administrator role — RAG configuration requires admin-level access in Opti ID
- CMP with content — Your CMP instance should have published campaigns, tasks, and assets. RAG retrieves from existing data, so an empty CMP will produce no results.
- RAG enabled by Optimizely — Your Customer Success Manager must activate RAG for your organization before you can configure it
Step 1: Verify prerequisites
Section titled “Step 1: Verify prerequisites”Before configuring RAG, confirm your environment is ready.
- Log into home.optimizely.com and select your organization
- Navigate to Opal > Settings
- Confirm you see a RAG Configuration section. If it is missing, contact your Customer Success Manager to enable RAG for your account.
- Navigate to your CMP instance and confirm you have published content (campaigns, tasks, assets, or briefs)
Expected result: The RAG Configuration section is visible in Opal Settings, and your CMP contains content to index.
Step 2: Enable RAG
Section titled “Step 2: Enable RAG”Activate RAG so Opal begins building its index of your content.
- In Opal > Settings > RAG Configuration, toggle Enable RAG to on
- Review the data processing consent — RAG indexes your CMP content within Optimizely’s secure infrastructure
- Confirm activation
The initial indexing process runs in the background. Depending on the size of your content library, this can take minutes to hours.
Expected result: RAG status shows “Indexing” or “Active.” Your CMP content is being processed into the unified content graph.
Step 3: Configure CMP data sources
Section titled “Step 3: Configure CMP data sources”Tell Opal which parts of your CMP content to index.
- In RAG Configuration, click Data Sources
- Select Content Marketing Platform
- Choose which workspaces to include:
- All workspaces — Index everything across your CMP
- Selected workspaces — Choose specific workspaces to limit scope
- Save your data source configuration
Limiting to specific workspaces is useful when you have development or test workspaces that should not influence Opal’s responses.
Expected result: Your selected CMP workspaces appear as connected data sources with an indexing status.
Step 4: Select content types
Section titled “Step 4: Select content types”Control which types of CMP content Opal can retrieve.
- In Data Sources > CMP, click Content Types
- Enable or disable indexing for each content type:
| Content type | What it includes | When to enable |
|---|---|---|
| Campaigns | Campaign names, descriptions, timelines, goals | When agents need campaign context |
| Tasks | Task details, assignments, status, comments | When agents need workflow context |
| Assets | Images, documents, videos with metadata and descriptions | When agents need to reference or find media |
| Briefs | Creative briefs, content briefs, strategy documents | When agents need strategic context |
| Labels and tags | Taxonomy data applied to content | When agents need to filter by category |
- Save your content type selections
Expected result: Only the content types you selected are marked for indexing. Unselected types are excluded from retrieval.
Step 5: Test retrieval in Chat
Section titled “Step 5: Test retrieval in Chat”With RAG active and content indexed, test whether Opal retrieves relevant content from your library.
- Navigate to Opal > Chat
- Ask a question that can only be answered from your CMP data:
What campaigns are currently active for Q2?-
Check the response for:
- Specificity — Does Opal reference your actual campaign names, dates, and goals?
- Source attribution — Does the response indicate which CMP data it retrieved?
- Accuracy — Do the facts match what is in your CMP?
-
Try additional queries that test different content types:
Find assets tagged for the spring product launch.What does the content brief say about our target audience forthe rebrand campaign?Expected result: Opal returns responses that reference your actual CMP data — specific campaign names, real asset descriptions, and accurate dates.
Step 6: Validate accuracy
Section titled “Step 6: Validate accuracy”Systematic validation catches issues that ad-hoc testing might miss.
- Prepare 5-10 test queries covering different content types and workspaces
- For each query, note the expected answer based on what you know is in CMP
- Run each query in Opal Chat and compare the response to your expected answer
- Score each response:
| Score | Meaning |
|---|---|
| Correct | Response matches CMP data accurately |
| Partially correct | Response references real data but misses key details |
| Incorrect | Response contains fabricated information or wrong data |
| No retrieval | Response is generic and does not reference CMP data |
- If you see “Incorrect” or “No retrieval” results:
- Verify the content exists in an indexed workspace
- Confirm the content type is enabled in Step 4
- Check that indexing has completed (status shows “Active,” not “Indexing”)
Expected result: At least 80% of your test queries return correct or partially correct results. Remaining issues are typically caused by unindexed content or ongoing indexing.
Step 7: Configure agents to use RAG
Section titled “Step 7: Configure agents to use RAG”RAG becomes most powerful when your custom agents access retrieved content as part of their workflow.
- Navigate to Opal > Agents > Your Agents
- Select an agent you want to enhance with RAG (or create a new one)
- In the agent’s Instructions, add guidance for how the agent should use retrieved content:
## Context UsageWhen answering questions about our campaigns or content:1. Search the content library for relevant campaigns, assets, and briefs2. Reference specific campaign names, dates, and goals from retrieved data3. If no relevant content is found, state that clearly rather than generating assumptions4. Always cite which campaign or asset you are referencing- In the agent’s Tools, ensure content retrieval tools are enabled
- Save the agent configuration
- Test the agent in Chat with a query that requires CMP context
Expected result: The agent uses your CMP data to produce grounded, specific responses instead of generic content.
Step 8: Monitor retrieval quality
Section titled “Step 8: Monitor retrieval quality”RAG performance depends on the freshness and quality of your indexed content. Set up ongoing monitoring.
- Navigate to Opal > Settings > RAG Configuration
- Review the Index Status dashboard:
- Last indexed — When the most recent indexing run completed
- Content count — How many items are indexed by content type
- Retrieval rate — How often queries successfully retrieve relevant content
- Schedule regular reviews (weekly or monthly):
- Re-run your validation queries from Step 6
- Check that newly published CMP content appears in retrieval results
- Review agent outputs for accuracy drift
Expected result: Ongoing visibility into retrieval quality. Index updates reflect new CMP content as it is published.
What you built
Section titled “What you built”You now have a working RAG configuration that:
- Connects Opal to your CMP content library
- Indexes campaigns, assets, briefs, and tasks
- Enables agents and Chat to produce responses grounded in your real data
- Respects permission-aware access controls
- Is monitored for ongoing accuracy
What to do next
Section titled “What to do next”- Build agents that leverage RAG — Create specialized agents that reference your content library for campaign planning, asset discovery, and content generation
- Expand data sources — As additional product integrations become available, add them to your RAG configuration
- Train your team — Share the RAG-enabled agent with team members and gather feedback on response quality
- Refine instructions — Use real-world feedback to improve how agents use retrieved content
1. After enabling RAG, your test queries return generic responses that do not reference any CMP data. What should you check first?
Generic responses typically mean content has not been indexed yet or the correct workspaces and content types are not selected. Checking the indexing status and data source configuration resolves most issues.
Generic responses typically mean content has not been indexed yet or the correct workspaces and content types are not selected. Checking the indexing status and data source configuration resolves most issues.
Review this topic →2. A team member asks Opal about a campaign they do not have CMP access to. What does RAG return?
RAG in Opal is permission-aware. Query-level filters scope searches to content the user can access, and post-query verification confirms permissions before including results. Users cannot surface content they lack access to, even through natural language queries.
RAG in Opal is permission-aware. Query-level filters scope searches to content the user can access, and post-query verification confirms permissions before including results. Users cannot surface content they lack access to, even through natural language queries.
Review this topic →