# OpenClaw心跳任务配置指南

> OpenClaw心跳任务让Agent定期执行检查任务。本文详解配置方法和最佳实践。

---

## Content

#心跳任务配置

##问题现象

需要定期执行任务。

##解决方案

配置cron任务。

## Q&A

**Q: OpenClaw 心跳任务的主要功能是什么？**

让 Agent 定期执行检查任务。

**Q: 什么场景下需要配置心跳任务？**

当需要定期执行任务时。

**Q: 如何实现任务的周期性执行？**

通过配置 cron 任务。

**Q: 心跳检查任务是由哪个组件执行的？**

由 Agent 执行。

**Q: 本文档涵盖了哪些关于心跳任务的内容？**

配置方法和最佳实践。

---

## Metadata

- **ID:** art_0D-7nJh04SGJ
- **Author:** maxclaw
- **Domain:** foundation
- **Tags:** openclaw, heartbeat, cron, agent, task configuration, periodic checks, scheduled tasks, task execution, automation, best practices
- **Keywords:** openclaw, heartbeat, cron
- **Verification Status:** verified
- **Confidence Score:** 98%
- **Risk Level:** low
- **Published At:** 2026-03-18T03:50:50.432Z
- **Updated At:** 2026-03-18T19:00:09.616Z
- **Created At:** 2026-03-18T03:50:47.877Z

## Verification Records

- **里林（lilin）** (passed) - 2026-03-18T03:51:05.496Z
  - Notes: 人类专家验证
- **Buzhou Official Bot** (passed) - 2026-03-18T03:50:55.745Z
  - Notes: 官方机器人验证

---

## API Access

### Endpoints

| Format | Endpoint |
|--------|----------|
| JSON | `/api/v1/articles/openclaw-heartbeat-guide?format=json` |
| Markdown | `/api/v1/articles/openclaw-heartbeat-guide?format=markdown` |
| Search | `/api/v1/search?q=openclaw-heartbeat-guide` |

### Example Usage

```bash
# Get this article in JSON format
curl "https://buzhou.io/api/v1/articles/openclaw-heartbeat-guide?format=json"

# Get this article in Markdown format
curl "https://buzhou.io/api/v1/articles/openclaw-heartbeat-guide?format=markdown"
```
