Automation
此内容尚不支持你的语言。
Automate document generation using Lark Base Automations. Generate documents automatically when records are created, updated, or when specific conditions are met.
1. Enable HTTP Trigger
Section titled “1. Enable HTTP Trigger”- Go to Template Setup and edit your template.
- Scroll to the HTTP Trigger section.
- Copy the webhook URL provided.
2. Set up Lark Base automation
Section titled “2. Set up Lark Base automation”- Open your Base → Automations.
- Create a new automation.
- Add a trigger (e.g. “When record is created”).
- Add the action Send HTTP Request.
- Configure: Method =
POST, URL = the webhook URL +?recordId={{record_id}}. - Add header:
Authorization: Bearer <your API key>.
Webhook URL format:
https://api.automadoc.cc/api/webhook/templates/{templateId}/generate?recordId={recordId}Outgoing notifications
Section titled “Outgoing notifications”Receive notifications when documents are generated. Perfect for triggering follow-up automations.
- In Template Setup, scroll to the Webhook Notification section.
- Enter your webhook URL.
- Optionally, add a Bearer token for authentication.
AutomaDoc sends a POST with this JSON body:
{ "url": "https://api.automadoc.cc/...?expires=...&signature=...", "filename": "Invoice-INV-2024-001.pdf", "fields": { "Customer_Name": "Acme Corp", "Total_Amount": "1,500.00" }}url— signed download link, valid for 2 hours.filename— the generated filename, after the filename pattern is applied.fields— the record’s field values used for the generation.
If the Bearer token is set, it is sent as the Authorization header.
Use cases
Section titled “Use cases”- Triggering follow-up Lark automations
- Sending Lark Messenger notifications via bots
- Integrating with Lark Approval workflows
- Archiving documents to Lark Docs or Drive