> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flowyte.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Take phone orders with a delivery-area check

> Answer menu questions, take the order, confirm it's in your delivery zone, and send it to the kitchen — by phone.

A busy pizzeria can't pick up every call at the dinner rush — and every missed call is an order
that went to the place down the street. A Flowyte **agent** answers, knows your menu, takes the
order, and only promises delivery when the address is actually in your zone.

## What it does on a call

<CardGroup cols={2}>
  <Card title="Knows the menu" icon="pizza-slice">
    Answers "what's on the supreme?" and "how much is a large?" from your real menu — no guessing.
  </Card>

  <Card title="Checks the delivery area" icon="map-location-dot">
    Before promising delivery, it checks the caller's address against your zone and offers pickup if it's out of range.
  </Card>

  <Card title="Takes the order" icon="receipt">
    Collects items, size, and any notes, reads the total back, and confirms.
  </Card>

  <Card title="Sends it to the kitchen" icon="bell-concierge">
    Posts the finished order to your kitchen display or order system the moment it's confirmed.
  </Card>
</CardGroup>

## How it's built

Three pieces on one agent:

<Steps>
  <Step title="Load the menu as knowledge">
    Add your menu (a URL, a PDF, or pasted text) as [knowledge](/concepts/knowledge). The agent
    answers menu and price questions from it.
  </Step>

  <Step title="Add a delivery-area check">
    Add a free [geo](/concepts/skills) skill with the `check_service_area` action — your shop
    address as the origin and your delivery radius. The agent asks for the address and confirms
    coverage before taking a delivery order.
  </Step>

  <Step title="Send the order out">
    Add an `http_webhook` skill that posts the confirmed order to your kitchen display or POS
    (or an email skill if you'd rather it land in an inbox).
  </Step>
</Steps>

```bash Delivery-area skill theme={null}
curl -X POST https://builder.flowyte.com/api/v1/agents/$AGENT_ID/skills \
  -H "Authorization: Bearer $FLOWYTE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "name": "Check delivery area",
        "description": "Check whether the caller's delivery address is within our delivery zone before taking a delivery order.",
        "skillType": "geo",
        "executionConfig": {
          "action": "check_service_area",
          "originAddress": "120 Main St, Boulder, CO",
          "radiusMiles": 5
        }
      }'
```

<Note>
  Geometry is free — you're only charged when the agent has to look up a caller's address. See the
  full build in [Take an order with a delivery check](/guides/take-orders).
</Note>
