Skip to main content

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

For Flutter, follow the Flutter integration steps.

3. Wrap your chat with AdMeshProvider

Use your API key and a unique sessionId 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 to AdMeshRecommendations inside your provider.
Use the user message ID for 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, provider sessionId, and the recommendation’s messageId and query props. For optional callbacks, theming, or sponsored follow-ups, see the React SDK reference.