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

# Cash and payroll check

> A weekly check that cash covers payroll and upcoming bills.

Finance needs to know cash covers the next payroll and the big bills before it becomes a problem. Hops compares balances against payroll and payables every week and flags any shortfall early.

<Info>
  **How it runs:** Scheduled. An automation runs every Thursday at 9am, posts the cash check to the finance Space and saves it as a dated Doc. You can also ask Hops any time.
</Info>

## What it does

* **Reads balances and bills.** Hops pulls cash on hand and upcoming bills from Xero or QuickBooks.
* **Reads the next payroll.** It gets the run amount and date from Gusto or your payroll tool.
* **Checks the next 14 days.** It compares cash to payroll plus bills due and states the margin and the runway.
* **Flags shortfalls early.** If cash dips below the minimum balance pinned in Space context, the alert leads the post.
* **Keeps it to five lines.** The output is short enough to read in Slack and act on.

<Frame>
  <img src="https://mintcdn.com/hopsdocs/tkB4Ie3VaZfG_Zdp/images/use-cases/finance-cash-payroll.gif?s=4511e99f1ba9fc3b07d635cf253701bd" alt="Cash and payroll check automation, Hops reads balances in Xero and payroll in Gusto" width="1440" height="810" data-path="images/use-cases/finance-cash-payroll.gif" />
</Frame>

## Ask Hops

Copy a prompt into any chat with Hops, or mention `@Hops` in a Space.

```text theme={null}
Check cash against payroll and bills for the next 14 days.
```

```text theme={null}
Will we cover the October 31 payroll if Globex pays 10 days late?
```

```text theme={null}
What is our runway today, and how does it compare to last month?
```

```text theme={null}
List bills over $10K due before the next payroll.
```

```text theme={null}
Is cash above our minimum balance every week this month?
```

Example reply:

> Cash check for the next 14 days:
>
> * Cash on hand $2.4M covers payroll ($610K) and bills (\$380K).
> * Runway stays at 21 months.
> * No shortfall; next check Thursday.

## What you get

* **An answer in chat**, in the same thread, whenever you ask.
* **A weekly post** in the finance Space every Thursday with the margin, runway and any shortfall.
* **A dated cash check Doc** in **Docs** of the Space, so you can compare week over week.

## Connections needed

Connect these apps. Each card opens Connections in the app.

<CardGroup cols={3}>
  <Card title="Xero" icon="plug" href="https://app.hops.ai/my-hops/connections">
    Balances and bills (or QuickBooks).
  </Card>

  <Card title="Gusto" icon="plug" href="https://app.hops.ai/my-hops/connections">
    Payroll runs and dates (or your payroll tool).
  </Card>

  <Card title="Slack" icon="slack" href="https://app.hops.ai/my-hops/connections">
    Posts the check to the finance channel.
  </Card>
</CardGroup>

## Set it up

<Steps>
  <Step title="Create the Space">
    Create a **finance** Space. Pin the minimum cash balance in Space context.

    See [Spaces](/docs/spaces/overview) and [Space context](/docs/spaces/space-context).
  </Step>

  <Step title="Connect your apps">
    Connect the apps above in **Connections**.

    See [Connections](/docs/connections/overview).
  </Step>

  <Step title="Add the skill">
    Give Hops these instructions:

    ```text theme={null}
    You check cash coverage. Compare cash on hand to payroll and bills due in the next 14 days. State the margin, the runway and any shortfall. Keep it to five lines.
    ```

    See [Build a skill](/docs/agents/build-a-skill).
  </Step>

  <Step title="Schedule it">
    Every Thursday at 9am Hops posts the cash check to the finance Space and saves it as a dated Doc.

    See [Automation](/docs/spaces/automation).
  </Step>
</Steps>


## Related topics

- [Finance](/teams/finance.md)
- [Monthly close](/teams/finance/use-cases/monthly-close.md)
- [Commission checks](/teams/revops/use-cases/commissions.md)
- [Board prep](/teams/finance/use-cases/board-prep.md)
- [Investor update](/teams/founders-executives/use-cases/investor-update.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.