Latenode

Automatically create Close tasks for new custom activities

This template starts when Close posts a custom activity to a webhook, loads the lead, and creates a Close task from the activity name, notes, and due date.

JavaScript calls the Close API to create that task. Connect Close. Point Close activity events at the webhook URL. Put the Close API key on the Close connection, and in the JavaScript node that creates the task.

Updated Sep 16, 2026Est. run: 7sEst. cost: $0.0004
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Creates a Close task when a custom activity is added or updated
  • Starts when Close posts the activity to a webhook
  • Loads the Close lead so the task can name the contact
  • Creates each task through JavaScript

How it works

1
Trigger

Receive the Close activity

The scenario starts when Close posts a new or updated custom activity to the webhook URL you set.

2
Action

Load the Close lead

Close returns the lead from the id on the activity payload so the task can name the contact.

3
Action

Create the Close task

JavaScript creates the task with activity name, notes, and due date. Put the Close API key in that JavaScript node.

Setup guide

1

Add the webhook

Add a webhook trigger and copy its URL. In Close, send new and updated custom activities to that URL.

2

Connect Close

Add a Close connection and paste your Close API key there. Load the lead from the id on the activity payload.

3

Create the task in JavaScript

Add a JavaScript node that creates the Close task. Put the Close API key in that JavaScript node. Set the task text from the activity name, put notes in the body, attach the lead id, and set a due date if the activity has one. Test with one custom activity.

Requirements

A Close account that can post custom activity events to a webhook
A Close API key stored on the Close connection and in the JavaScript node that creates the task
A rule for the task text, due date, and assignee

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.