1. Create your account and API key
Register for AdMesh, complete onboarding, and select Tail or Product in your platform’s ad formats. Create an API key in the dashboard.2. Install the SDK
3. Wrap your chat with AdMeshProvider
Use your API key and a uniquesessionId for each conversation. Keep that ID
unchanged as the conversation continues.
4. Add recommendations below assistant responses
Store the original user query and its user message ID with each assistant response. Pass those values toAdMeshRecommendations inside your provider.
messageId. The returned recommendation determines
the Tail or Product layout; no format prop is needed.
5. Test your integration
Send a query in your app. When an eligible recommendation is returned, check that it appears below the assistant response with an Ad label and a working link. The SDK handles exposure and click tracking. If nothing appears, check your API key, providersessionId, and the recommendation’s
messageId and query props.
For optional callbacks, theming, or sponsored follow-ups, see the
React SDK reference.