Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#46 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
api, cli

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 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).

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của chatwoot/cli

Tất cả issue của chatwoot/cli

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.