Skip to content

Prospect methods: engage

The Prospect Verbs engage as typed SDK methods, with inputs, result, refusals and an example.

Reference for Prospect, one group of Prospect methods.

Prospect.engage

Engage records a Prospect’s first reply or raised hand and makes it a Lead that keeps its Acquisition. Verb page.

TypeScript
interface ProspectVerbs {
  engage(input: ProspectEngageInput, options?: SB.CallOptions): SB.Call<ProspectEngageOutput>
}

Emits Prospect.engaged.

Inputs

InputTypeRequiredDescription
prospectProspectrequiredThe Prospect that replied or raised a hand.
messageMessageThe reply or Form submission that shows the engagement.

Returns

OutputTypeRequiredDescription
leadLeadrequiredThe new Lead, with status new and the Prospect’s Acquisition.
prospectProspectrequiredThe Prospect who engaged.

Refuses when

CheckErrorFixThen call
The key is valid, but its scopes do not allow this operation.forbiddenUse a key whose scopes cover the operation, or ask an owner of the namespace to grant them.None.

Example

TypeScript
import { $ } from 'startup-builder'

const { lead, prospect } = await $.Prospect.engage({ prospect: 'prospect_S8bqJCxC9R' })