Support file uploads (multipart) and Help Center write commands for agent workflows
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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 apionly sends JSON or a raw body, so it can't do the multipartPOST /api/v1/accounts/:id/upload(attachmentfield) the article editor uses.external_urluploads 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
- Multipart file upload in
chatwoot api, e.g.chatwoot api -X POST /upload --form attachment=@./screenshot.png, returning thefile_url/blob_id. This alone would unblock the workflow. - 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 Markdownchatwoot 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).
- Ngôn ngữ chính
- Go
- Star
- 9
- Fork
- 5
- Merge trung bình
- 2 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của chatwoot/cli
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 48/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Issue tương tự
-
Realtime: ASR EOU language tags leak into the LLM conversation (unintended reply-language switching)Có thể đã có người làm @nexxtmobile đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
-
effort:high model:sonnet phase:3 type:docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
OffchainLabs/nitro#4771 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
BurntSushi/toml#530 ·