1) Detect commercial intent
1) Detect commercial intent
- Your agent can run its own intent detection in user prompts
- Or use Adgentic’s built-in intent analysis microservice
- Non-commercial →
{"response": false, "offers": []}
- Commercial or Potential Commercial →
{"response": true, "offers": [...]}
If you’re unsure, send your raw user prompt to the MCP and let the gateway classify it.
2) Call the MCP tool
2) Call the MCP tool
Tool:
match_adgentic_products
- Pass the user’s
prompt
and optionalcontext
(e.g.{ "country": "US" }
) location/country
helps return geo-relevant offers (shipping/availability)- Include your
api_key
unless it’s set in the MCP server environment
Minimal request payload JSON
3) Adgentic matches offers
3) Adgentic matches offers
- Commercial intent → best-matching products (max. 5 offers)
- Potential commercial → multiple relevant products
- Non-commercial →
{"response": false, "offers": []}
Example products shape