Seygi
03/24/2025, 2:32 PMVapi Support Bot
03/24/2025, 2:34 PM**Parse the following survey transcript and generate four tables in markdown format. Extract only the relevant answers, ignoring any introductory conversation. Also, include today's date without the time.**
**Transcript:**
[Call Summary or Transcript Here]
**Date:** {{now | date: "MMMM D, YYYY"}}
**Campaign:** {{assistantName}}
**Phone number:** {{customer.number}}
**Output:**
- **Date:** (date)
- **Campaign:** (campaign name)
- **Phone number:** (customer number)
- **Zip Code:** (zip code)
- **Drive from plant:** (time in minutes)
According to the [Vapi documentation on dynamic variables](https://docs.vapi.ai/assistants/dynamic-variables), you can use double curly braces {{variableName}}
to insert dynamic variables into your prompts.
For the date formatting, I've included a more specific format using LiquidJS syntax: {{now | date: "MMMM D, YYYY"}}
which will display just the date without the time, as you requested. This is based on the [recommended simplified syntax for date formatting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336772166330351646).
For the assistant's name, {{assistantName}} can be defined with a type and name, for example: "type": "assistant", "assistantName": "DUI - Outbound"
as mentioned in the [Vapi documentation](https://docs.vapi.ai/knowledgebase).Vapi Support Bot
03/24/2025, 2:34 PMVapi Support Bot
03/24/2025, 2:46 PMSeygi
03/24/2025, 9:11 PMPraveen Nair
03/26/2025, 1:46 PM{{now}}
would insert the current date and time
\- {{assistant.name}}
would insert the assistant's name (note the correct syntax)
\- {{caller.phoneNumber}}
would insert the caller's phone number as you have it
Here's how your refined prompt could look:
\`\`\`
Parse the following survey transcript and generate four tables in markdown format. Extract only the relevant answers, ignoring any introductory conversation. Also, include today's date without the time.
Transcript:
\[Call Summary or Transcript Here\]
Date: {{now}}
Campaign: {{[assistant.name](http://assistant.name)}}
Phone number: {{caller.phoneNumber}}
Output:
Date: {{now format="YYYY-MM-DD"}}
Campaign: {{[assistant.name](http://assistant.name)}}
Phone number: {{caller.phoneNumber}}
Zip Code: \[Extracted from transcript\]
Drive from plant: \[Extracted from transcript\]
\`\`\`
The key changes I made:
1\. Changed {{assistantName}}
to {{assistant.name}}
which is the correct variable syntax for accessing the assistant's name
2\. Added a format specifier to the date variable {{now format="YYYY-MM-DD"}}
to show only the date without time
3\. Left placeholders for information that would be extracted from the transcriptSeygi
03/26/2025, 2:23 PMPraveen Nair
03/29/2025, 8:10 AMSeygi
03/29/2025, 9:00 PM