Come posso integrare FirstPosition.ai nei miei pipeline CI/CD per testare continuamente la visibilità AI?
FirstPosition.ai can be invoked as a CLI step in any CI/CD pipeline to verify that your content appears in AI‑generated answers on every commit. After the build stage, install the @firstposition/cli npm package, set the FIRSTPOSITION_API_KEY secret, and run `firstposition check --query "your phrase" --threshold 80`. The tool returns a citation score (0‑100) and the exact rank; the step fails if the score drops below the threshold or if the answer is not present. It supports over 200 public AI models, averages <2 s latency per query, and outputs JSON that can be parsed by downstream jobs for alerts or reporting. For self‑hosted LLMs, override the endpoint with `--endpoint https://my‑llm.local/v1`. This approach gives you a deterministic, automated gate that catches visibility regressions before they reach production.