Introduction
AdMesh enables conversational platforms (AI assistants, search engines, chat applications) to monetize through contextually relevant product recommendations. We offer flexible integration options to fit your platform’s architecture and requirements.Package Requirements
Mandatory: admesh-ui-sdk
admesh-ui-sdk is required for all AdMesh integrations.
This package provides the core functionality every platform needs:
- Session Management: Automatically creates and manages user sessions
- Recommendation Fetching: Retrieves contextually relevant recommendations from AdMesh
- Rendering: Displays recommendations in your UI with proper formatting
- Tracking: Automatically tracks exposures, clicks, and conversions
- Transparency: Adds
[Ad]labels to comply with advertising standards
- Provider Pattern: 3-line integration with automatic everything
- Zero-code integration (3 simple steps)
- Automatic session lifecycle management
- Built-in error handling and fallbacks
- Support for multiple ad formats (citation, product cards, etc.)
- Configurable theming and styling
Three Core Components
Theadmesh-ui-sdk provides three components for different integration needs:
1. AdMeshProvider - State Management
Wraps your application and manages SDK initialization, session tracking, and state.- ✅ Initializes the SDK
- ✅ Manages user sessions
- ✅ Tracks message lifecycle
- ✅ Handles errors
2. AdMeshRecommendations - Citation & Product Formats
Displays recommendations as a separate UI component. Use this for Citation or Product format.- ✅ You want a separate recommendations panel
- ✅ You want Citation format (inline citations)
- ✅ You want Product format (product cards)
- ✅ You want automatic rendering and tracking
format="citation"- Inline citations with product linksformat="product"- Product cards with details
3. WeaveAdFormatContainer - Weave Ad Format
Wraps your LLM response content and automatically detects AdMesh links. Use this for Weave format.- ✅ You embed AdMesh links directly in LLM responses
- ✅ You want automatic link detection
- ✅ You want fallback recommendations if no links present
- ✅ You want automatic tracking and transparency labels
- Detects AdMesh links in your content
- Adds
[Ad]labels automatically - Fires exposure pixels when links detected
- Shows fallback UI if no links found
Integration Decision Guide
Choose your component based on your platform’s needs.Citation & Product Format
Best for: Most platforms that want quick, automatic integration Use:AdMeshRecommendations component
What you get:
- Automatic rendering of recommendations
- Automatic tracking and transparency labels
- Zero-code setup (3 steps)
- Multiple format options (citation, product cards)
- Install
admesh-ui-sdk - Wrap app with
AdMeshProvider - Add
AdMeshRecommendationscomponent
Weave Ad Format
Best for: Conversational AI platforms that embed AdMesh links directly in LLM responses Use:WeaveAdFormatContainer component
What you get:
- Automatic link detection in LLM responses
- Automatic exposure tracking
- Fallback recommendations when no links present
- Transparency labels added automatically
- Simple component-based integration
- Install
admesh-ui-sdk - Wrap app with
AdMeshProvider - Wrap LLM response with
WeaveAdFormatContainer - Provide
fallbackUIwithAdMeshRecommendations
Component Comparison
| Aspect | AdMeshRecommendations | WeaveAdFormatContainer |
|---|---|---|
| Purpose | Display recommendations | Detect & track links |
| Formats | Citation, Product | Weave Ad Format |
| Rendering | Automatic UI | Wraps your content |
| Link Detection | N/A | Automatic |
| Fallback UI | N/A | Supported |
| Tracking | Automatic | Automatic |
| Setup Time | 2 minutes | 2 minutes |
| Best For | Separate recommendations | Embedded in responses |
Quick Reference
Choose AdMeshRecommendations if:- You want a separate recommendations panel
- You want Citation format (inline citations)
- You want Product format (product cards)
- You want automatic rendering
- You embed AdMesh links in LLM responses
- You want automatic link detection
- You want fallback recommendations
- You want automatic tracking
Next Steps
- For Citation & Product Format: Go to Citation & Product Format
- For Weave Ad Format: Go to Weave Ad Format
- Have Questions? Check our FAQ or contact [email protected]
AdMesh empowers platforms to monetize the future of conversation — seamlessly, ethically, and transparently.