provide latest assistant create variables
# support
y
can you please provide me detailed create assistant post request which all variables it gets , as i want to conduct surveys using assistant , i want all variables to be sent in assiatant as in sdk system prompt is not available
v
To create an assistant via POST request, you can include fields like
name
,
firstMessage
,
model
(with system prompt/messages),
voice
, and more. For surveys, use dynamic variables in your prompts (e.g.,
{{question1}}
) and pass their values at call time using `assistantOverrides.variableValues`—not during assistant creation.
If your SDK does not support setting the system prompt, would you like an example of creating the assistant directly via API with a custom system prompt and dynamic variables? Sources: - [Vapi API Reference – Create Assistant](https://docs.vapi.ai/api-reference/assistants/create-assistant) - [Vapi Dynamic Variables](https://docs.vapi.ai/assistants/dynamic-variables)
y
yes give me api example for creating surveys using assistants specifying system prompts
k
Send a POST request defining the assistant’s name, initial message, OpenAI model settings, optional custom tools like logging responses, and voice settings, then start a call passing dynamic variables via assistantOverrides to personalize the survey, since system prompts aren’t available in the SDK. Use variables in prompts and optional functions to handle responses during the conversation..
y
but providing system prompt option is not available in sdk in cerate assistant
k
Create the assistant via Vapi’s API using model.messages to simulate a system prompt, define dynamic placeholders like {{customerName}} in the firstMessage, and personalize calls or chats by passing values through assistantOverrides.variableValues when starting the session..