TUTORIALS · DOCUMENTATION

Answer a first question

Find a fact and link its source.

This tutorial gets one sourced answer from the public API. Use the base URL of the LUCA agent site that you want to query.

  1. Open /llms.txt on that site.
  2. Read the main product description and its limits.
  3. Ask a product question:
curl 'https://luca-pay-agents-preview.pages.dev/api/v1/answer?q=fees'
  1. Read the review_state and source_checked_at fields.
  2. Open the sources URLs in the response.
  3. Give the person a short answer with those links.
  4. If the pages conflict, tell the person and link the current terms.

The public API returns reviewed facts. Use the source links to check the answer. Do not call the answer credit approval.