Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Support file uploads (multipart) and Help Center write commands for agent workflows

未关闭
#46 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
go
领域
api, cli

调研方向

Start with the chatwoot api command and its current JSON/raw-body request handling, then inspect the chatwoot hc command structure. Compare the requested multipart POST to /api/v1/accounts/:id/upload and the proposed Help Center write commands with Chatwoot CLI 0.6.1 behavior and related issue chatwoot/chatwoot#14638. Done means the scoped commands support the requested upload and article/category operations with usable output.

由索引模型根据 Issue 内容生成。

描述

Problem

We run self-hosted Chatwoot CE (v4.17) and use AI coding agents with the official CLI (0.6.1, also checked 0.7.0) to manage our Help Center. The agents can read and write articles through chatwoot api, but they cannot add images to an article without a browser session or shell access to the server:

  • chatwoot api only sends JSON or a raw body, so it can't do the multipart POST /api/v1/accounts/:id/upload (attachment field) the article editor uses.
  • external_url uploads only work if the image is already on a public URL. Screenshots for a new article usually live in a private repo or on the local disk.
  • Help Center commands (chatwoot hc ...) are read-only.

So publishing a short how-to with screenshots currently needs a person to drag images into the web editor, or someone with root on the server running rails runner.

Request

  1. Multipart file upload in chatwoot api, e.g. chatwoot api -X POST /upload --form attachment=@./screenshot.png, returning the file_url/blob_id. This alone would unblock the workflow.
  2. Help Center write commands (nice to have), e.g.:
    • chatwoot hc upload <file>: upload an image and print a path that can go into article Markdown
    • chatwoot hc article create|update --file article.md --category <slug>
    • chatwoot hc article publish <id>
    • chatwoot hc category create|list

Why

Docs and help articles are a natural fit for agent-driven workflows: write the Markdown in a repo, review it in a PR, then publish with the CLI using a scoped admin token. Image upload is the one step that still needs a human or server access.

Related: chatwoot/chatwoot#14638 (Help Center file attachments in the editor).

主要语言
Go
星标
11
派生
5
平均合并
2 分钟
30 天内合并 PR
2

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

chatwoot/cli 的其他 Issue

查看 chatwoot/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。