DuckDuckGo · Capability

Instant Answer Search Workflow

Instant Answer Search Workflow is a Naftiko capability published by DuckDuckGo on the APIs.io network.

Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Run with Naftiko

Capability Spec

instant-answer-search-workflow.yaml Raw ↑
apiVersion: naftiko.dev/v1
kind: WorkflowCapability
metadata:
  name: duckduckgo-instant-answer-search
  description: >-
    Compose the Instant Answer API into a single privacy-respecting topic
    lookup that combines topic abstract retrieval, disambiguation, and
    bang-aware redirect handling.
spec:
  inputs:
    - name: query
      type: string
      required: true
  steps:
    - id: try_bang
      capability: ddg.instant_answer.resolve_bang
      when: input.query startsWith '!'
      output: bangRedirect
    - id: lookup
      capability: ddg.instant_answer.lookup_topic
      when: not steps.try_bang.executed
      output: topic
    - id: disambig
      capability: ddg.instant_answer.disambiguate
      when: steps.lookup.output.Type == 'D'
      output: choices
  output:
    bangRedirect: steps.try_bang.output.Redirect
    abstract: steps.lookup.output
    disambiguation: steps.disambig.output
  governance:
    attribution_required: true
    attribution_text: "Results via DuckDuckGo"