Skip to main content
POST
/
v2.0
/
ai
/
call-script
Generate Call Script
curl --request POST \
  --url https://api.lofty.com/v2.0/ai/call-script \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "leadId": 100001,
  "taskId": 300001
}
'
{
  "context": "<string>",
  "objectiveSuggestion": [
    "<string>"
  ],
  "keyTalkingPoints": [
    {
      "title": "<string>",
      "value": [
        "<string>"
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developer.lofty.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Authorization
string
required

Bearer [access_token]

Content-Type
string
required

application/json

Body

application/json

Generate call script request

leadId
integer<int64>
required

Lead ID

Example:

100001

taskId
integer<int64>
required

Task ID

Example:

300001

Response

Call script generated successfully

Generated call script

context
string

Call background context overview

objectiveSuggestion
string[]

Suggested call objectives

keyTalkingPoints
object[]

Key talking points