Labsco
openai logo

aiq-research

✓ Official4,081

by openai · part of openai/plugins

Use when asked to run deep research or AI-Q research through a reachable NVIDIA AI-Q Blueprint backend.

🧩 One of 7 skills in the openai/plugins package — works on its own, and pairs well with its siblings.

This is the playbook your agent receives when the skill activates — you don't need to read it to use the skill, but it's here to audit before installing.

AIQ Research Skill

Purpose

Use this skill to call a locally running NVIDIA AI-Q Blueprint server through the helper script at scripts/aiq.py.

Use this skill for research-shaped requests, including:

  • "deep research on ..."
  • "AIQ research ..."
  • "research ..."
  • "use AI-Q to answer ..."
  • "ask AI-Q about ..."

Do not use this skill for install, deploy, start, stop, UI, CLI, Docker, Helm, or troubleshooting requests. Those belong to aiq-deploy.

Instructions

  1. Resolve the target backend URL.
  2. Run health before sending research requests.
  3. If no backend is reachable, ask for a backend URL or hand off to aiq-deploy.
  4. Before sending any user query, state the exact AI-Q backend URL that will receive it. For non-local URLs, continue only if the user has explicitly confirmed that URL is trusted in the current conversation.
  5. Poll asynchronous deep research jobs when AI-Q returns a job ID.
  6. Present returned reports with citations and source URLs intact.
  7. Stop on failed jobs and show the returned error; do not retry automatically.

Step 1 - Resolve the backend

Use AIQ_SERVER_URL when set. Otherwise try the default local backend:

python3 $SKILL_DIR/scripts/aiq.py health

Expected output: JSON from a reachable AI-Q health endpoint.

If health fails and no explicit AIQ_SERVER_URL was set, ask:

I do not see a reachable local AI-Q backend. Do you already have an AI-Q backend URL you want to use, or should I deploy a local Skill backend?
  • If the user provides a URL, set AIQ_SERVER_URL for subsequent helper calls and rerun health.
  • If the user wants local deployment, hand off to aiq-deploy and preserve the original research request.
  • If a reachable backend returns 401 or 403, stop and explain that this public skill does not manage authentication. Ask the user to use an authenticated AI-Q skill or configure authentication for their environment.
  • If health succeeds but /chat or /v1/jobs/async/agents fails, report that the backend is reachable but not compatible with this public research flow, then offer to run aiq-deploy validation.

Step 2 - Send the routed research request

Before sending the request, state the resolved endpoint:

I will send this query to <AIQ_SERVER_URL>. Make sure this endpoint is trusted before sending sensitive information.

Do not send credentials, cookies, bearer tokens, or secret values through the query text.

Run:

python3 $SKILL_DIR/scripts/aiq.py chat "<USER_QUESTION>"

Expected output:

  • A normal JSON response for shallow or direct answers.
  • Or structured JSON containing {"status": "deep_research_running", "job_id": "<JOB_ID>"} for asynchronous deep research.

If the response is normal JSON, present the result immediately. Do not force polling when there is no job_id.

Step 3 - Poll asynchronous jobs

If the response includes deep_research_running, extract the job_id and poll with the same absolute script path:

python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>

Expected output: the final report JSON when the job completes successfully.

Use the runtime's non-blocking or background execution mechanism when available. If the chosen execution method requires escalated permissions, request explicit user approval first and explain why. Tell the user that deep research is running in the background.

Step 4 - Resume after interruptions

If polling is interrupted, the job continues server-side. Resume with:

python3 $SKILL_DIR/scripts/aiq.py status <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py report <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>

Use status to inspect job status and saved artifacts. Use report when the job has already finished and you only need the final output. Use research_poll to keep waiting for completion.

Step 5 - Present the report

When research_poll completes successfully, fetch and present the full report. Keep citations and source URLs intact. If the job status is failed, failure, or cancelled, show the error from the status response and ask whether the user wants to retry with a narrower query or different approach.

Version Compatibility

IMPORTANT: This skill is designed for NVIDIA AI-Q Blueprint version 2.1.0.

Semantic Versioning Compatibility Rules:

Skill version: X.Y.Z
Blueprint or endpoint version: A.B.C

Compatible IF:
1. A == X (Major versions MUST match)
2. B >= Y (Minor version must be equal or greater)
3. C can be anything (Patch version does not affect compatibility)

Examples:

  • Skill version 2.1.0 is compatible with Blueprint version 2.1.0.
  • Skill version 2.1.0 is compatible with Blueprint version 2.2.0.
  • Skill version 2.1.0 is compatible with Blueprint version 2.1.5.
  • Skill version 2.1.0 is not compatible with Blueprint version 3.0.0.
  • Skill version 2.1.0 is not compatible with Blueprint version 2.0.0.

If your Blueprint version is not compatible:

  1. Check for an updated skill version matching your Blueprint version.
  2. Use a Blueprint version compatible with this skill.
  3. Proceed with caution only when the user accepts the compatibility risk; API routes or response shapes may have changed.

Available Scripts

ScriptPurposeArguments
scripts/aiq.py healthCheck whether the configured server respondsnone
scripts/aiq.py chatPOST /chat; may return inline output or a deep-research job ID<query>
scripts/aiq.py agentsList available async agent typesnone
scripts/aiq.py submitSubmit an explicit async job<query> [agent_type]
scripts/aiq.py researchSubmit an async job, poll, and print the final report JSON<query> [agent_type]
scripts/aiq.py research_pollResume polling an existing async job<job_id>
scripts/aiq.py statusFetch job status plus /state artifacts<job_id>
scripts/aiq.py stateFetch event-store artifacts only<job_id>
scripts/aiq.py reportFetch the final report for a completed job<job_id>
scripts/aiq.py streamStream SSE events from a job<job_id>
scripts/aiq.py cancelCancel a running job<job_id>

When the host supports a run_script() helper, call it with scripts/aiq.py and the arguments above. Otherwise, run the equivalent shell command, such as python3 $SKILL_DIR/scripts/aiq.py health.

Environment Variables

VariableRequiredDefaultDescription
AIQ_SERVER_URLNohttp://localhost:8000Local or self-hosted AI-Q server base URL

Security Best Practices

  • Do not put API keys, bearer tokens, cookies, or basic-auth credentials in AIQ_SERVER_URL.
  • Store backend credentials in the AI-Q deployment environment, not in this skill or command examples.
  • User query text is transmitted to the configured AIQ_SERVER_URL. Confirm the endpoint is trusted before sending sensitive or confidential information.
  • Treat returned reports as potentially sensitive if the backend uses private data sources.
  • Do not truncate citations or source URLs from returned reports.

Examples

Example 1: Run a routed chat or research request

python3 $SKILL_DIR/scripts/aiq.py health
python3 $SKILL_DIR/scripts/aiq.py chat "Compare local AIQ deep research with a standard web search workflow"

Expected output:

<health JSON from AI-Q>
<JSON chat response or {"status": "deep_research_running", "job_id": "<JOB_ID>"}>

If AI-Q returns a job ID, continue with research_poll.

Example 2: Resume an existing job

python3 $SKILL_DIR/scripts/aiq.py status <JOB_ID>
python3 $SKILL_DIR/scripts/aiq.py research_poll <JOB_ID>

Replace <JOB_ID> with the UUID returned by AI-Q. Expected output: status JSON followed by the report JSON when the job completes. If the job failed, show the returned status and do not retry automatically.

References

TopicDocumentation
Helper scriptscripts/aiq.py
Deployment and backend validation../aiq-deploy/SKILL.md