项目
在 GitHub 查看
prompt-engineering/chat-flow
关于
ChatFlow——基于 AI 的聊天流程框架,用于打造个性化的 ChatGPT 工作流,构建自动化之路。
效率与自动化实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.zh-CN.md
原文ChatFlow - 打造个性化 ChatGPT 流程,构建自动化之路
Screenshots:

Online Demo: https://prompt.phodal.com/
English | 简体中文
部署
在 Vercel 上部署 ChatFlow,使用 Planetscale
按照以下步骤,在 Vercel 上部署 ChatFlow,使用由 Planetscale 提供的无服务器 MySQL 数据库:
- 从 GitHub 克隆 ChatFlow 模板。
- 创建 Vercel 帐户,并将其连接到 GitHub 帐户。
- 创建 Planetscale 帐户。
- 设置 Planetscale 数据库:
- 使用
pscale auth login登录 Planetscale 帐户。 - 使用
pscale password create <DATABASE_NAME> <BRANCH_NAME> <PASSWORD_NAME>创建密码。 - 使用
npx prisma db push将数据库推送到 Planetscale。
- 使用
- 配置 Vercel 环境:
- 设置 Planetscale 数据库的 URL:
DATABASE_URL='mysql://{user}:{password}@{host}/{db}?ssl={"rejectUnauthorized":false&sslcert=/etc/ssl/certs/ca-certificates.crt}'。 - 使用
node scripts/gen-enc.js生成加密密钥,并将其设置为ENC_KEY。
- 设置 Planetscale 数据库的 URL:
完成这些步骤后,您的 ChatFlow 将在 Vercel 上部署,并使用 Planetscale 的 Serverless MySQL 数据库。
本地搭建
- 从 GitHub 克隆 ChatFlow 模板。
- 暂时仍依赖 Planetscale 服务,按照上小节注册,并配置
DATABASE_URL到.env 文件。 - 执行
npm install。 - 使用
node scripts/gen-enc.js生成加密密钥,在.env文件中配置ENC_KEY=***的形式。(PS:.env文件可以从 env.template 复制过去) - 直接运行
npm run dev就可以使用了。
Create new Flow
- examples: see in: src/assets/chatgpt/flow
- all type defines: src/flows/types
Development
Technical documentation:
- Flowchart
- DotParser, parse dot file to graph data
- dagre, layout graph data
- ReactFlow, render graph data
- Flow Functions
- jsonpath-plus, parse jsonpath
- expr-eval, parse expression
- Flow Components
- JsonViewer, render json data
- DataTable, render table data
- Flow Editor
- ReactFlow, render graph data
- Repl Server
- Rx.js, handle websocket
- Others
- MarkdownViewer, render markdown data
- MermaidViewer, render mermaid data
LICENSE
This code is distributed under the MIT license. See LICENSE in this directory.
探索相关项目
加载中…