awslabs / awslabs/agentcore-samples
Feature Request: Competitive Intelligence use case via Intelica x402 API
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 30
Description
## Use case
**Competitive intelligence for AI agents** — agents that evaluate markets, screen startups, or analyze competitors before making business decisions.
## The API
[Intelica](https://api.intelica.dev) is a competitive intelligence API fully compliant with x402 v2:
- `decision_recommendation.action` — `enter` / `avoid` / `monitor` / `acquire` / `partner`
- `intelica_moat_index` — structural moat score (0.0–1.0) across 3,600+ companies
- `detected_competitors` — mapped from real sources
- `execution_plan` — week 1 actions, budget guidance, validation signals
**Price:** $0.05 USDC standard · **Networks:** `eip155:8453` + Solana · **x402Version:** 2
## Agent pays autonomously via AgentCore Payments
```python
from strands import Agent
from strands_tools import http_request
from bedrock_agentcore.payments.integrations.config import AgentCorePaymentsPluginConfig
from bedrock_agentcore.payments.integrations.strands.plugin import AgentCorePaymentsPlugin
config = AgentCorePaymentsPluginConfig(
payment_manager_arn="arn:aws:bedrock-agentcore:us-east-1:ACCOUNT:payment-manager/pm-ID",
user_id="user-123",
payment_instrument_id="instrument-ID",
payment_session_id="session-ID",
region="us-east-1",
)
agent = Agent(
model="us.anthropic.claude-sonnet-4-5-20251001-v1:0",
system_prompt="Analyze competitive markets. POST to https://api.intelica.dev/intel with {text, mode}.",
tools=[http_request],
plugins=[AgentCorePaymentsPlugin(config=config)],
)
# Agent pays $0.05 USDC autonomously when it hits the 402
result = agent("Should I build a Stripe competitor for Southeast Asia?")
```
## Example output
```json
{
"decision_recommendation": {
"action": "avoid",
"confidence_score": 0.88,
"rationale": "IMI 0.82 — Stripe developer ecosystem lock-in creates unassailable moat"
},
"intelica_moat_index": 0.82,
"detected_competitors": ["Stripe", "Adyen", "2C2P"],
"execution_plan": {
"non_obvious_insight": "Exploitable gap is local payment coverage (<40% merchant penetration in SEA)"
}
}
```
Full example: https://github.com/teodorofodocrispin-cmyk/Intelica-docs/blob/main/examples/bedrock_agentcore_intelica.py
Agentic Market validator (all checks pass): https://agentic.market/validate → `https://api.intelica.dev/intel`
Contributor guide
Research direction
The issue names no repository file or test; the only implementation entry point shown is the Python Agent example using AgentCorePaymentsPlugin and http_request. First determine the requested sample scope and repository location, then define validation for the Intelica x402 flow before considering completion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- ai, cloud, payments
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100