Some checks failed
App Prod-Parity E2E Dispatch / dispatch (push) Failing after 10s
CD Storybook UI / build (push) Failing after 3m25s
CD Storybook UI / dispatch (push) Has been skipped
CD deploy main / website-changed-files (push) Successful in 18m8s
CI Agent Skills / changed-files-check (push) Successful in 18m9s
CI Create App E2E minimal / changed-files-check (push) Successful in 24s
CI Create App / changed-files-check (push) Successful in 26s
CI Docs / changed-files-check (push) Successful in 26s
CI Emails / changed-files-check (push) Successful in 28s
CI Example App Hello World / changed-files-check (push) Successful in 23s
CI Front / changed-files-check (push) Has been skipped
CI Example App Postcard / changed-files-check (push) Successful in 27s
CI UI / changed-files-check (push) Has been skipped
CI Utils Test / changed-files-check (push) Successful in 45s
CI Twenty Apps / discover (push) Successful in 1m3s
CD deploy main / deploy-main (push) Failing after 3s
CI Agent Skills / agent-skills-validate (push) Has been skipped
CI Create App / create-app-test (lint) (push) Has been skipped
CI Emails / emails-test (push) Has been skipped
CI Front / front-task (lingui:compile) (push) Has been skipped
CI Front / front-task (lint) (push) Has been skipped
CI Example App Postcard / example-app-postcard (push) Has been skipped
CI UI / ui-task (lint) (push) Has been skipped
CI UI / ui-task (pack-size) (push) Has been skipped
CI UI / ui-task (size) (push) Has been skipped
CI UI / ui-task (test) (push) Has been skipped
CI UI / ui-task (typecheck) (push) Has been skipped
CI Utils Test / utils-test (push) Has been skipped
CI Twenty Apps / ${{ matrix.app.name }} (push) Has been skipped
CI Emails / ci-emails-status-check (push) Successful in 2s
CI Example App Hello World / ci-example-app-hello-world-status-check (push) Successful in 2s
CI Example App Postcard / ci-example-app-postcard-status-check (push) Successful in 3s
CI UI / ui-sb-test (push) Has been skipped
CI Utils Test / ci-utils-test-status-check (push) Successful in 2s
CI Twenty Apps / ci-twenty-apps-status-check (push) Successful in 2s
CI UI / ci-ui-status-check (push) Successful in 2s
CI Desktop / desktop (push) Failing after 1m8s
Push docs to Crowdin / Push documentation to Crowdin (push) Failing after 55s
Push translations to Crowdin / Extract and upload translations (push) Failing after 5s
Push website translations to Crowdin / Extract and upload website translations (push) Failing after 5s
CI Create App / create-app-test (test) (push) Has been skipped
CI Create App / create-app-test (typecheck) (push) Has been skipped
CI Docs / docs-lint (push) Has been skipped
CI Example App Hello World / example-app-hello-world (push) Has been skipped
CI Front / front-task (lingui:extract) (push) Has been skipped
CI Front / front-task (test) (push) Has been skipped
CI Front / front-task (typecheck) (push) Has been skipped
CI UI / ui-sb-build (push) Failing after 1m32s
CI Twenty Apps / ${{ matrix.app.name }} (${{ matrix.server-source }}) (push) Has been skipped
CI Agent Skills / agent-skills-publish (push) Has been skipped
CI Create App / ci-create-app-status-check (push) Successful in 2s
CI Agent Skills / agent-skills-remote-source (push) Has been skipped
CI Create App E2E minimal / create-app-e2e-minimal (push) Has been cancelled
CI E2E Main / e2e-test (push) Has been cancelled
CI Front / front-sb-build (push) Has been cancelled
CI Front / front-build (push) Has been cancelled
CI Create App E2E minimal / ci-create-app-e2e-minimal-status-check (push) Has been cancelled
CI E2E Main / ci-e2e-main-status-check (push) Has been cancelled
CI E2E Main / notify-main-ci-failure (push) Has been cancelled
CI E2E Main / qa-scout-comment (push) Has been cancelled
CI Front / front-sb-test (push) Has been cancelled
CI Front / front-sb-screenshots (push) Has been cancelled
CI Front / ci-front-status-check (push) Has been cancelled
DPA Sub-Processor Sync / sync-subprocessors (push) Failing after 3s
AI Catalog Sync / sync-catalog (push) Failing after 2s
82 lines
3.4 KiB
Plaintext
82 lines
3.4 KiB
Plaintext
---
|
||
title: 工作流
|
||
description: 了解如何在 Twenty 中构建自动化流程。
|
||
---
|
||
|
||
## 为何工作流很重要
|
||
|
||
Twenty的设计宗旨是为用户提供最大的灵活性。 工作流可以让您自行构建自动化功能,打造最能支持您独特业务用例的CRM,而不是强迫您将业务流程迁就于僵化的预设功能。
|
||
|
||
工作流是Twenty应用内构建这些自动化功能的特色。 它们为您提供了创建企业所需模块的基础,无论何时都能满足需求。
|
||
|
||
## 我可以用工作流做什么?
|
||
|
||
我们建议将自动化用于两个主要目的:
|
||
|
||
1. **内部自动化以便日常团队工作**:减少手动输入和重复任务,这些任务会减缓团队的速度。
|
||
2. **引入和导出Twenty的数据**:通过API调用和Webhooks将Twenty与您的数据库和其他工具连接。
|
||
|
||
## 构建您的第一个工作流
|
||
|
||
### 步骤 1:创建新工作流
|
||
|
||
1. 前往位于其他对象下方的 **工作流**
|
||
2. 点击 **+ 新建记录**
|
||
3. 为您的工作流命名
|
||
|
||
### 步骤 2:添加触发器
|
||
|
||
每个工作流都从一个触发器开始。 从以下选项中选择:
|
||
|
||
* **记录事件**:当记录被创建、更新或删除时
|
||
* **计划**:在特定时间运行(每天、每周等)
|
||
* **手动**:由用户操作触发
|
||
* **Webhook**:由 webhook 触发
|
||
|
||
<img src="/images/user-guide/workflows/workflow_triggers.png" style={{width:'100%'}} />
|
||
|
||
### 步骤 3:添加操作
|
||
|
||
在触发器之后,添加一个或多个操作:
|
||
|
||
* **创建记录**:向任何对象添加新记录
|
||
* **更新记录**:修改现有记录数据
|
||
* **删除记录**:从对象中移除记录
|
||
* **搜索记录**:查找符合条件的记录
|
||
* **插入或更新记录**:基于匹配条件创建或更新
|
||
* **迭代器**:遍历记录数组
|
||
* **过滤器**:控制哪些记录继续执行
|
||
* **延迟**:在继续之前等待(持续时间或计划日期)
|
||
* **发送电子邮件**:通过已连接的账户发送电子邮件
|
||
* **代码**:运行自定义 JavaScript
|
||
* **HTTP 请求**:调用外部 API
|
||
* **表单**:在执行时于 Twenty UI 内获取用户输入
|
||
* **AI 代理**(即将推出):运行智能 AI 任务
|
||
|
||
<img src="/images/user-guide/workflows/workflow_actions.png" style={{width:'100%'}} />
|
||
|
||
### 步骤 4:测试并启用
|
||
|
||
1. 使用 **Test** 按钮,以示例数据运行您的工作流
|
||
2. 检查结果以确保其按预期工作
|
||
3. 准备就绪后,将工作流切换为 **Active**
|
||
|
||
## 工作流最佳实践
|
||
|
||
* **编辑步骤名称**:重命名您的工作流步骤,以明确描述每个步骤的作用。 这有助于维护,并使工作交接给同事更轻松
|
||
* **利用前一步的数据**:您可以使用由工作流程中任何前一步返回的记录字段
|
||
* **从简单开始**:从基础工作流开始,并随着对系统的熟悉,随着时间的推移增加复杂性
|
||
* **在构建之前计划**:在开始构建之前,绘制出您的工作流逻辑,以避免半途而废
|
||
|
||
## 下一步
|
||
|
||
* [工作流触发器](/l/zh/user-guide/workflows/capabilities/workflow-triggers)
|
||
* [工作流操作](/l/zh/user-guide/workflows/capabilities/workflow-actions)
|
||
* [CRM 自动化](/l/zh/user-guide/workflows/how-tos/crm-automations/closed-won-automations)
|
||
|
||
## 需要帮助?
|
||
|
||
<Tip>
|
||
需要帮助来实现工作流自动化吗? [查找认证的20个伙伴](https://twenty.com/partners/list?categories=SOLUTIONING\&ref=docs-workflows) 来设计和构建您的端到端自动化。
|
||
</Tip>
|