Skip to main content
Use Duckie as an external subagent when a customer-owned orchestration agent should keep ownership of the overall workflow, but Duckie should handle a focused support task such as searching knowledge, summarizing context, classifying a request, or drafting a customer-safe answer. This pattern is intentionally small: the customer’s agent sends Duckie a task, Duckie runs a specialized agent, and Duckie sends the result back to the customer’s system.

Example Flow

Custom webhook deployments accept the request and process it asynchronously. If the orchestrator needs the result, have the Duckie agent call a custom tool configured with a fixed callback API and a correlation ID rather than expecting the webhook response to include the final answer.

When to Use This Pattern

Use Duckie as an external subagent when: Good first tasks include:
  • Search internal support docs and return a sourced answer.
  • Classify a customer request into your support taxonomy.
  • Summarize a ticket, conversation, or account record.
  • Draft a customer-facing response for the orchestrator to review or send.
  • Check policy eligibility and return a recommendation.

What to Build

Request Shape

Send the task to a Duckie custom webhook as JSON.
Map the payload into: Keep the webhook payload focused. Do not include secrets, credentials, API keys, or unnecessary sensitive data.

Agent Setup

Create an autonomous agent with a narrow name and description, such as External Knowledge Search Agent. Example instructions:
Give this agent access only to the knowledge, runbooks, guidelines, guardrails, and tools required for the subtask. For a search agent, that usually means Duckie knowledge search and the callback custom tool.

Callback Tool

Create a custom tool that posts the result back to your orchestrator API.
Example body parameters: Use a fixed callback endpoint. Pass task IDs, customer IDs, or routing keys as parameters instead of letting the agent choose a destination URL.

Result Shape

The callback response to your orchestrator can look like this:
Your orchestrator can then decide whether to continue the workflow, ask Duckie another focused task, send a customer response, or route to a human.

Testing

  1. Create the webhook deployment in Testing mode.
  2. Send a representative task payload with a correlation ID.
  3. Open Analyze > Runs and verify the message, metadata, searched knowledge, and tool calls.
  4. Confirm your callback API receives one result for the task.
  5. Test missing context, low-confidence answers, and callback failures before switching the deployment to Live.

Custom Webhooks

Trigger Duckie from your orchestration system.

Custom Tools

Send the subagent result back to your API.

Autonomous Agents

Configure the focused Duckie agent.

Run History

Review the Duckie run, tool calls, and callback result.

Designing Agent Systems

Place this pattern inside a larger agent architecture.

Single Agents vs Sub-Agents

Compare internal delegation with external orchestration.