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

# Set Business Hours and Availability

> Configure business hours, timezone settings, and availability rules to control when your agent handles calls.

Set when your agent accepts calls. Configure business hours, timezone, and how calls outside those hours are handled.

**Scheduling is optional.** If no schedule is configured, your agent is available 24/7 when enabled.

***

## Configure business hours

<Tabs>
  <Tab title="Dashboard">
    Navigate to the **Schedule** tab when creating or editing an agent.

    <Steps>
      <Step title="Set timezone">
        Select your timezone from the dropdown (e.g., "America/New\_York", "Europe/London").
      </Step>

      <Step title="Configure daily hours">
        For each day (Monday–Sunday):

        1. Toggle the day ON to enable it
        2. Adjust **Start Time** and **End Time**
        3. Click **+** to add additional time blocks (split shifts)
      </Step>

      <Step title="Save changes">
        Click **Save Agent** to apply your schedule.
      </Step>
    </Steps>
  </Tab>

  <Tab title="API">
    <Accordion title="API example: Schedule configuration">
      ```javascript theme={"theme":{"light":"github-light","dark":"github-dark"}}
      const response = await fetch('https://blackbox.dasha.ai/api/v1/agents', {
        method: 'POST',
        headers: {
          'Authorization': 'Bearer YOUR_API_KEY',
          'Content-Type': 'application/json'
        },
        body: JSON.stringify({
          name: "Customer Support Agent",
          isEnabled: true,
          config: { /* ... */ },
          schedule: {
            timezone: "America/New_York",
            mon: [{ start: { hour: 9, minute: 0 }, end: { hour: 17, minute: 0 } }],
            tue: [{ start: { hour: 9, minute: 0 }, end: { hour: 17, minute: 0 } }],
            wed: [{ start: { hour: 9, minute: 0 }, end: { hour: 17, minute: 0 } }],
            thu: [{ start: { hour: 9, minute: 0 }, end: { hour: 17, minute: 0 } }],
            fri: [{ start: { hour: 9, minute: 0 }, end: { hour: 17, minute: 0 } }],
            sat: [],
            sun: []
          }
        })
      });
      ```
    </Accordion>
  </Tab>
</Tabs>

***

## Call routing behavior

### During business hours

* Agent accepts calls immediately
* Call proceeds normally
* Full conversation capabilities available

### Outside business hours

**Inbound calls:**

* Platform does not automatically reject based on schedule
* Use a start webhook to handle after-hours calls
* Alternative: Disable agent entirely during after-hours

**Scheduled outbound calls:**

* Calls are queued and wait for business hours
* Scheduler calculates next available time
* If deadline passes before working hours resume, call is canceled

### Queue behavior

| Situation                      | Result                             |
| ------------------------------ | ---------------------------------- |
| Call scheduled outside hours   | Queued until business hours resume |
| Deadline exceeded while queued | Call canceled                      |
| Multiple calls queued          | Processed in priority order        |

***

## What's next

<CardGroup cols={2}>
  <Card title="Create Your Agent" icon="robot" href="/docs/create/creating-your-first-agent">
    Configure agent with schedule
  </Card>

  <Card title="Outbound Calls" icon="phone-volume" href="/docs/deploy/outbound-calls">
    Schedule outbound calls with deadlines
  </Card>

  <Card title="Webhooks" icon="bell" href="/docs/webhooks-and-events/webhooks-overview">
    Handle after-hours calls with webhooks
  </Card>

  <Card title="Call History" icon="list-check" href="/docs/monitor/call-history">
    Monitor call queue
  </Card>
</CardGroup>
