BotCurrent↗
← Back to examples

Official recipe · Coding orchestration

Build a metered AI-answer feature

Source-backed example. Practical decision guidance is proposed and untested; this is not a full implementation guide.

The problem

An AI-answer feature needs implementation, usage tracking and billing visibility before a team can evaluate its behavior in production.

Agent job

Implement an answer API through a pull request and user-controlled deployment, then monitor usage, latency and billing.

Expected output

An answer-feature pull request and usage, latency and billing observations.

Where this framing comes from
  • Core problem: Editorial purpose framing
  • Agent job: Editorial purpose framing
  • Expected output: Editorial purpose framing
  • Relevant job roles: Editorial purpose framing
  • Benefit type: Editorial purpose framing
Editorial framing and outcome limits

Describes the task’s purpose and intended output; measured benefit, safe unsupervised operation and successful delivery are not established by this framing.

Editorial synthesis based on the linked source. This framing does not add evidence of successful delivery or results.

Case-specific decision guidance · untested

Case-specific decision guidance and first checks are original proposals. The linked source supports the attributed task; this added guidance has not been executed.

Read the attributed source evidence and original caveats below ↓

Why use this

  1. An AI-answer endpoint can work in a demo while its usage meter misses retries, streaming failures or requests that never reach billing. If product and payment records disagree, users may be charged incorrectly or the team may misunderstand operating costs.

  2. This job could make implementation, metering and observability reviewable together. A clear event model would help engineers distinguish answer delivery, chargeable usage and provider cost before a user-controlled release.

Why an agent / simpler alternative

Useful judgment

Connect API behaviour with usage events and propose tests for retries and partial failures.

Simpler alternative

Use a fixed internal prototype without billing when the team only needs to evaluate answer quality.

Unsuitable when

The feature requires live charges, credential creation or production deployment without explicit authorization.

Proposed inputs

  1. Name

    Feature contract

    Owner

    Product owner

    Minimum scope

    Answer behaviour, limits, entitlement rules and user-visible errors

    Quality check

    Define what constitutes a completed and billable request.

  2. Name

    Repository and measurement design

    Owner

    Engineering owner

    Minimum scope

    Approved interfaces, test accounts and event schema

    Quality check

    Keep provider cost, customer usage and billing amounts distinct.

Access and setup — proposed or unknown

Proposed minimum
  1. Work in an authorized development copy with mocked providers and payment events.

Compatibility unknowns
  1. Unknown: API access, framework versions, billing integration and deployment compatibility.

External actions requiring approval
  1. Creating credentials, changing billing rules, deploying or sending live payment events.

Expected deliverable and review checks

Proposed artifact

Reviewable implementation proposal with metering model, failure tests and staged observability checks.

Critical checks
  1. A retried request cannot create duplicate chargeable usage.

  2. Failed or cancelled answers follow the agreed billing rule and remain diagnosable.

Missing output evidence

No new run or output inspection in this editorial layer; see linked source-specific limits.

Failure signals and proposed responses

  1. Signal

    A network retry records usage twice.

    Why it matters

    The customer could be overcharged even though only one answer arrived.

    Proposed response

    Use a stable request identity and reconcile duplicate events in the proposed design.

  2. Signal

    Provider usage is confused with customer entitlement consumption.

    Why it matters

    Costs and invoices may drift in different directions.

    Proposed response

    Maintain separate ledgers and an explicit reconciliation bridge.

Effort and cost — unknown

Setup work
  1. Define event semantics and isolated test fixtures.

Ongoing review
  1. Review reconciliation alerts, latency outliers and billing discrepancies after approved release.

Unknowns
  1. Unknown: provider pricing, infrastructure charges and operational support effort.

First check — proposed, unexecuted

Status

proposed_unexecuted

Synthetic fixture

Synthetic events include one successful answer, its repeated delivery event and a cancelled stream.

Acceptance checks
  1. The success consumes entitlement once.

  2. The cancelled stream follows an explicit rule rather than an accidental default.

Stop conditions
  1. Live credentials, real charges or production deployment is needed.

Limits

  1. A metering design is not verified billing accuracy; release and payment behaviour need separately authorized testing.

Tasks: Build & debug

Useful for: Software developerProduct manager

Editorial relevance from the title and source-supported actions; not evidence of the operator’s occupation.
Perplexity ComputerIndependent testing: No

Editorial candidate. This is source-backed reporting or a documented workflow. BotCurrent has not independently tested this task. A proposed Canadian adaptation is not evidence of a Canadian deployment or compliance certification.

Original source

https://www.perplexity.ai/en-GB/hub/blog/computer-for-builders ↗

Attributed to: Perplexity

Official recipe
Original action type
coding_agent_orchestration
What the source supports
Implement an answer API through PR and deployment; monitor usage, latency and billing.
Source outcome limits
This official recipe describes a procedure; it does not prove successful execution or independently reproduced results.
Evidence attribution caveat
This official recipe describes a procedure; it does not prove successful execution or independently reproduced results.
Source approval description
PR review and merge are assigned to the user.
Named tools
Computer; Perplexity Agent API; GitHub; Next.js; Supabase; Vercel; Datadog; Stripe
Model or version
Unknown
Publication date
2026-08-06
Source last checked
2026-10-14
Demonstrated in Canada
Unknown
Canadian availability
unknown; not inferred from general product availability
Proposed Canadian adaptation
Proposed: Confirm Canadian service access, applicable privacy requirements, and English/French needs before any pilot.
Recommended approval boundaries
Approve API data handling, budget, security review, billing semantics and production deployment.