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, "products": []} - Commercial or Potential Commercial →
{"response": true, "products": [...]}
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
promptand optionalcontext(e.g.{ "country": "US" }) countryhelps return geo-relevant offers (shipping/availability)- Include your
api_keyunless it’s set in the MCP server environment
Minimal request payload JSON
3) Adgentic matches products
3) Adgentic matches products
- Commercial intent → best-matching products (max. 5 offers)
- Potential commercial → multiple relevant products
- Non-commercial →
{"response": false, "products": []}
Example products shape