Convert a markdown file to PDF and upload it to a Slack channel.
Converts a markdown file to PDF using weasyprint (Python) and uploads it to a Slack channel via the /api/slack/upload-file endpoint.
brew install python3)~/.crewly/venv/pdf-tools/ with weasyprint and markdown packages installed automaticallybash config/skills/agent/send-pdf-to-slack/execute.sh --channel C0123ABC --file /path/to/document.md --title "Weekly Report"
| Parameter | Required | Description |
|---|---|---|
--channel, |
-c| Yes |
| Slack channel ID to upload the PDF to |
--file, -f | Yes | Path to the markdown file to convert |
--title, -T | No | Title for the uploaded PDF (defaults to filename) |
--text, -t | No | Initial comment to include with the upload |
--thread, -r | No | Slack thread timestamp for threaded upload |
# Basic upload
bash execute.sh --channel C0123ABC --file report.md
# Upload with title and comment
bash execute.sh --channel C0123ABC --file report.md --title "Q4 Report" --text "Here is the quarterly report"
# Upload in a thread
bash execute.sh --channel C0123ABC --file notes.md --thread 1707123456.789000
JSON response from the upload API with fileId on success. Also emits a [NOTIFY] block for chat service integration.
python3 is not installed (includes install instructions)~/.crewly/tmp/slack-pdfs/)