how to add lead score, nextcalldate from vapi api?...
# support
h
@Vapi Support Bot I need to add lead score and nextcalldate could plz guide me how can i do that??
v
To add a lead score and a custom field like nextcalldate via the Vapi API, use a custom CRM update tool. Here’s a sample payload for a tool call:
Copy code
json
{
  "lead_id": "12345",
  "lead_score": 85,
  "nextcalldate": "2025-10-05T10:00:00Z"
}
Add these fields to your CRM update tool’s parameters and send them when updating the lead record. For more, see the [custom tools guide](https://docs.vapi.ai/tools/custom-tools). Source: - [Custom Tools](https://docs.vapi.ai/tools/custom-tools)
h
but i need to fetch in google sheet i am already fetching these but how will fetch lead_score and nextcalldate Call ID Assistant Assistant Phone Number Customer Phone Number Type System Status Ended Reason Customer Status Duration (s) Transcript Summary
@Vapi Support Bot
v
Currently, the Vapi Google Sheets integration only supports adding new rows to your spreadsheet—it does not support reading or updating existing data. This means you can push
lead_score
and
nextcalldate
into Google Sheets, but you cannot fetch these fields from the sheet using Vapi's integration at this time. For more details, see the [Google Sheets integration guide](https://docs.vapi.ai/tools/google-sheets). Could you clarify if you need to read data from Google Sheets into Vapi, or are you looking for a way to sync updates from your CRM back into your sheet? Source: - [Google Sheets Integration](https://docs.vapi.ai/tools/google-sheets)
h
i mean if these are fetching in google sheet with python script Call ID Assistant Assistant Phone Number Customer Phone Number Type System Status Ended Reason Customer Status Duration (s) Transcript Summary but how will fetch lead_score and nextcalldate from vapi api @Vapi Support Bot
v
To clarify, are you looking for a Python code example that fetches
lead_score
and
nextcalldate
from the Vapi API's call artifacts (structured outputs), or do you need help identifying the specific API endpoint to retrieve this data? Sources: - [Structured outputs quickstart](https://docs.vapi.ai/assistants/structured-outputs-quickstart) - [Structured outputs](https://docs.vapi.ai/assistants/structured-outputs)
h
firstly i need to know where lead_score and nextcalldate is showing in vapi api and then i will easily fetch in google sheet @Vapi Support Bot
v
To confirm, have you already set up a structured output schema in your Vapi assistant or workflow that includes the
lead_score
and
nextcalldate
fields? This step is required for these fields to appear in the API response under
artifact.structuredOutputs
when you fetch call data. If you need help with creating or linking the schema, let me know! Sources: - [Structured outputs](https://docs.vapi.ai/assistants/structured-outputs) - [Structured outputs quickstart](https://docs.vapi.ai/assistants/structured-outputs-quickstart)
h
can you tell me how it update the current date and time
because it update the date of past
@Vapi Support Bot
v
To update
nextcalldate
with the current date and time, you need to set it programmatically in your payload before sending it to Vapi. For example, in Python:
Copy code
python
import datetime
payload = {
    "lead_score": 85,
    "nextcalldate": datetime.datetime.utcnow().isoformat() + "Z"
}
Set
nextcalldate
to the current UTC time in ISO 8601 format before updating or creating the record via your tool or API call.
For more, see the [structured outputs guide](https://docs.vapi.ai/assistants/structured-outputs-quickstart). Sources: - [Structured outputs quickstart](https://docs.vapi.ai/assistants/structured-outputs-quickstart) - [Structured outputs](https://docs.vapi.ai/assistants/structured-outputs)
2 Views