AI-powered dental lead qualification using GLM-4.7 with web search.
Push to GitHub, then deploy on Koyeb using koyeb.yaml.
| Variable | Description |
|---|---|
ZAI_API_KEY |
z.ai GLM Coding Plan API key (enables web search) |
SLACK_BOT_TOKEN |
Slack bot token (xoxb-...) |
HUBSPOT_TOKEN |
HubSpot API token (pat-...) |
- Slack webhook receives lead notification
- GLM-4.7 analyzes lead with web search
- HubSpot CRM updated
- Emoji reaction + DM if qualified
Import n8n-workflows/lead_qualifier_glm47.json into n8n and create 3 credentials:
- Slack OAuth2 (for Slack Trigger + Slack actions)
- HubSpot HTTP Header Auth with
Authorization: Bearer <HUBSPOT_TOKEN> - Z.ai HTTP Header Auth with
Authorization: Bearer <ZAI_API_KEY>
Optional configuration (no env vars required on n8n Cloud):
- Edit the
Config (env)node:slackAllowedChannelsCsv: comma-separated channel IDs (leave empty to allow all)dmUserId: Slack user ID to DM (defaults toU08M425UAV8)