Proposal automation pandadoc proposify qwilr

From CraftOS-dev/craftbot-agent-bundles · View interactive version

Proposal automation pandadoc proposify qwilr is an AI agent skill from the GitHub repository CraftOS-dev/craftbot-agent-bundles. Automate sales proposal / SOW / quote generation via PandaDoc, Proposify, Qwilr, Better Proposals, GetAccept. CRM-triggered (HubSpot / Salesforce) doc creation with merge fields, content library blocks, dynamic pricing tables, embedded e-sign, and view analytics. Use when the user says "generate pro

How to use this skill

Skill file

Proposal automation — PandaDoc / Proposify / Qwilr

This skill builds and triggers proposal documents through dedicated proposal platforms. Embedded e-sign is part of the package; CPQ logic and binding pricing decisions defer to sales-ops and finance-controller.

When to use

User says:

Companion skills:

Setup

# PandaDoc — broadest 2026 default
# https://developers.pandadoc.com/reference/about
# Free dev sandbox; paid Business / Enterprise plans for production
pip install pandadoc-client     # optional Python SDK
# Or curl directly:
export PANDADOC_API_KEY="api_key_xxx"   # from PandaDoc → Settings → API + Integrations

# Proposify
# https://help.proposify.com/en/articles/5398128-api-getting-started
export PROPOSIFY_API_KEY="..."

# Qwilr
# https://qwilr.com/
export QWILR_API_KEY="..."

# GetAccept
# https://app.getaccept.com/api/  (REST)
export GETACCEPT_API_KEY="..."

Auth / API keys:

Common recipes

Recipe 1: Pick the platform

| Platform | Best for | Pricing (approx 2026) | API surface |

|---|---|---|---|

| PandaDoc | broadest CRM integrations, mature API | $19-65/user/mo | Full REST + webhooks + content library |

| Proposify | proposal-focused, simpler UI | $29-65/user/mo | REST API + Zapier |

| Qwilr | interactive web pages (not PDF-first) | $35-79/user/mo | REST API |

| Better Proposals | template marketplace, design-first | $19-49/user/mo | REST API |

| GetAccept | engagement + signing in one flow | quote | REST API + video proposal |

| Bonsai | freelancers + small studios | $25/mo | Limited API |

Recipe 2: PandaDoc — create document from template

curl -X POST https://api.pandadoc.com/public/v1/documents \
  -H "Authorization: API-Key $PANDADOC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Proposal - Acme Corp - WidgetCloud Pro",
    "template_uuid": "tmpl_abc123",
    "recipients": [
      {"email": "buyer@acme.com", "first_name": "Jane", "last_name": "Smith", "role": "Customer"},
      {"email": "rep@widgetco.com", "first_name": "John", "last_name": "Doe", "role": "Sender"}
    ],
    "tokens": [
      {"name": "Customer.Name", "value": "Acme Corp"},
      {"name": "Deal.Amount", "value": "$120,000"},
      {"name": "Deal.StartDate", "value": "2026-07-01"}
    ],
    "pricing_tables": [{
      "name": "Pricing Table 1",
      "data_merge": false,
      "options": {"currency": "USD"},
      "sections": [{
        "title": "Subscription",
        "default": true,
        "rows": [
          {"options": {"qty": 50, "price": 200}, "data": {"name": "WidgetCloud Pro — per seat"}},
          {"options": {"qty": 1, "price": 5000}, "data": {"name": "Onboarding (one-time)"}}
        ]
      }]
    }],
    "metadata": {"deal_id": "hubspot_deal_55512"},
    "tags": ["proposal", "q2-2026"]
  }'
# Response: { "id": "doc_xyz", "status": "document.draft", ... }

Recipe 3: PandaDoc — send for signature

# After document.uploaded webhook (POST /documents enqueues async draft creation)
curl -X POST "https://api.pandadoc.com/public/v1/documents/$DOC_ID/send" \
  -H "Authorization: API-Key $PANDADOC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "Proposal for Acme Corp — please review",
    "message": "Hi Jane,\n\nAttached is the WidgetCloud Pro proposal we discussed. Sign in-line when ready.\n\nJohn",
    "silent": false
  }'

Recipe 4: PandaDoc — webhook listener (completion + view events)

# FastAPI receiver
from fastapi import FastAPI, Request, Header, HTTPException
import hmac, hashlib

app = FastAPI()
PANDADOC_SIGNATURE_KEY = "..."   # from PandaDoc → Settings → Webhooks → signing key

@app.post("/webhook/pandadoc")
async def pandadoc_webhook(req: Request, signature: str = Header(None, alias="X-Pandadoc-Signature")):
    body = await req.body()
    expected = hmac.new(PANDADOC_SIGNATURE_KEY.encode(), body, hashlib.sha256).hexdigest()
    if not hmac.compare_digest(expected, signature):
        raise HTTPException(403)
    events = await req.json()
    for ev in events:
        if ev["event"] == "document_state_changed" and ev["data"]["status"] == "document.completed":
            # Download + archive
            ...
    return {"ok": True}

Recipe 5: PandaDoc — content library block

# Reusable "Company Overview" block for any proposal
curl -X POST https://api.pandadoc.com/public/v1/content-library-items \
  -H "Authorization: API-Key $PANDADOC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Company Overview — WidgetCo",
    "blocks": [
      {"type": "text", "content": "WidgetCo is a cloud platform serving 5,000+ customers..."}
    ]
  }'
# Use the returned content_library_item_uuid in subsequent documents

Recipe 6: Proposify — create proposal via API

curl -X POST https://api.proposify.com/v2/proposals \
  -H "Authorization: Bearer $PROPOSIFY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Acme Corp — WidgetCloud Pro Proposal",
    "template_id": 12345,
    "client_id": 67890,
    "fields": {
      "{{customer_name}}": "Acme Corp",
      "{{annual_fee}}": "$120,000"
    }
  }'

Recipe 7: Qwilr — create interactive page

curl -X POST https://api.qwilr.com/v1/pages \
  -H "Authorization: Bearer $QWILR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Acme — WidgetCloud Pro",
    "templateId": "tpl_abc",
    "merge": {
      "customer.name": "Acme Corp",
      "deal.amount": 120000
    }
  }'
# Returns a public URL; embed in CRM, send via email

Recipe 8: Trigger from HubSpot deal stage change

# HubSpot Workflow → webhook POST → this handler
from fastapi import FastAPI, Request
import httpx
app = FastAPI()

@app.post("/webhook/hubspot-deal-stage")
async def on_deal_stage(req: Request):
    payload = await req.json()
    if payload["properties"]["dealstage"]["value"] != "proposal_sent":
        return {"skip": True}
    deal_id = payload["objectId"]
    # Fetch deal + line items + contacts (HubSpot CRM v3)
    headers = {"Authorization": f"Bearer {HUBSPOT_TOKEN}"}
    async with httpx.AsyncClient() as c:
        deal = (await c.get(f"https://api.hubapi.com/crm/v3/objects/deals/{deal_id}?associations=contacts,line_items", headers=headers)).json()
        # Build PandaDoc payload from deal
        await c.post("https://api.pandadoc.com/public/v1/documents",
                     headers={"Authorization": f"API-Key {PANDADOC_API_KEY}"},
                     json=build_pandadoc_payload(deal))
    return {"ok": True}

Recipe 9: PandaDoc — embed CRM merge fields

PandaDoc supports CRM-tokenized fields ([Contact.FirstName], [Deal.Amount], [Company.Name]) when integration is connected to HubSpot / Salesforce / Pipedrive natively. In API mode, tokens array replaces them at create time.

Recipe 10: PandaDoc analytics — view duration per section

# Get document details + view-time
curl "https://api.pandadoc.com/public/v1/documents/$DOC_ID/details" \
  -H "Authorization: API-Key $PANDADOC_API_KEY"
# Response includes recipients[].last_view_date, recipients[].read_duration_seconds

Pipe to posthog-mcp for funnel dashboards (sent → opened → read 30s+ → signed).

Recipe 11: Document approval workflow (PandaDoc native)

# Add approver before recipients sign
curl -X POST "https://api.pandadoc.com/public/v1/documents/$DOC_ID/approvers" \
  -H "Authorization: API-Key $PANDADOC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "approvers": [
      {"email": "legal@widgetco.com", "id": "user_uuid_legal"},
      {"email": "cfo@widgetco.com", "id": "user_uuid_finance"}
    ]
  }'

Examples

Example 1: Sales Hub triggers PandaDoc on deal stage change

Goal: Rep clicks "Generate Proposal" in HubSpot → PandaDoc proposal created with deal data → emailed for signature.

Steps:

  1. HubSpot Workflow: deal stage = "Proposal Sent" → webhook to internal endpoint.
  2. Endpoint Recipe 8 — fetch deal + line items.
  3. Map to PandaDoc payload (Recipe 2) using a deal-type → template_uuid lookup.
  4. POST /documents → wait for document.uploaded webhook.
  5. POST /documents/{id}/send (Recipe 3) with subject/message from rep.
  6. Webhook listener Recipe 4 archives signed PDF + posts to Slack channel.

Result: One-click proposal from deal record to signed PDF.

Example 2: Qwilr interactive proposal for enterprise sale

Goal: Send a fully interactive web proposal with embedded video, ROI calculator, and "select your plan" widget.

Steps:

  1. Author Qwilr template with ROI block + plan selector.
  2. Recipe 7 — POST /pages with merge data.
  3. Email rep the Qwilr URL; rep forwards.
  4. Buyer interacts → Qwilr captures section-by-section engagement.
  5. Buyer clicks "Accept" → Qwilr e-sign or hand-off to DocuSign for contract.

Result: Interactive proposal with full engagement analytics.

Example 3: Proposify multi-stakeholder approval flow

Goal: Each $50k+ proposal must be approved by legal + finance before client sees it.

Steps:

  1. Recipe 6 — create proposal as draft.
  2. Internal approval routing (Recipe 11 PandaDoc analog in Proposify Settings).
  3. On both approvals, Proposify auto-sends to client.
  4. Track signature via webhook → posthog funnel.

Result: Compliance-gated proposal flow.

Edge cases / gotchas

Sources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.