Skip to main content

Estimate from text

A text estimate costs 10 credits with a live key. A follow-up that answers its question costs 5.

Send a description​

curl https://api.wfskills.com/v1/estimates \
-H "Authorization: Bearer $HOMETOWN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"input": {"text": "Install 100 feet of wood privacy fence"}}'

input.text takes up to 4,000 characters. Send input.messages instead to include the conversation so far, with up to 10 messages of 1,000 characters each. Each message has a role, customer or assistant, and its content.

Optional fields​

FieldUse
regionA region code from GET /v1/regions, when the job is not in the default region.
localeThe language of steps, such as es-MX.
currencyThe currency code of the region. Another currency answers 422.
hourly_rateYour rate per hour in whole units of the currency, from 1 to 2,000 (72 means USD 72.00). It replaces the going rate.
crew_sizePeople on the job, from 1 to 10. The hours stay the same and the time on site shrinks.
include_extrasfalse to skip related jobs the description also mentions.
metadataUp to 20 keys of your own with text values of up to 500 characters, returned with the estimate.

Read the status​

StatusWhat to do
pricedShow price and steps.
needs_detailAsk the customer question, then send a follow-up.
unsupportedHometown does not price this job. Nothing to retry.
unclearAsk the customer question, or send a new description.

Answer the question​

When the status is needs_detail, send the customer's answer to the same estimate:

curl https://api.wfskills.com/v1/estimates/est_<id>/follow-up \
-H "Authorization: Bearer $HOMETOWN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{"input": {"messages": [{"role": "customer", "content": "About 100 feet"}]}}'

The answer is a new estimate with its own id.

Read, list and delete​

  • GET /v1/estimates/{id} returns one estimate.
  • GET /v1/estimates lists them, newest first.
  • DELETE /v1/estimates/{id} erases an estimate and its follow-ups. It cannot be recovered.

Hometown erases each estimate after the retention period of the account, 30 days at most.