Demonstrates connecting Perplexity (API key) and executing a search feature.

1) Connect (API key)

curl -X POST "https://api.incredible.one/v1/integrations/perplexity/connect" \
  -H "Content-Type: application/json" \
  -d '{"user_id": "user_123", "api_key": "YOUR_API_KEY"}'
Expected response:
{ "success": true, "message": "Successfully connected to Perplexity" }
curl -X POST "https://api.incredible.one/v1/integrations/perplexity/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "user_id": "user_123",
    "feature_name": "PERPLEXITY_SEARCH",
    "inputs": {"query": "latest AI news", "focus": "tech"}
  }'
Example success response:
{
  "success": true,
  "result": {"items": [{"title": "...", "url": "..."}]},
  "integration_id": "perplexity",
  "feature_name": "PERPLEXITY_SEARCH",
  "user_id": "user_123"
}
View source on GitHub → 7_perplexity_integration.py