Creating ephemeral assistants from a server rather...
# support
t
Hi! Is it possible to create ephemeral assistants without sending config data from the front end? (exposing prompts etc.) At the moment in our app, the backend creates a persistent assistant and sends the assistantId to the frontend, which starts the call. But we're not reusing assistants, so a new one is created and needlessly saved for each call.
v
@TimG Hello! Yes, it is indeed possible to create temporary or ephemeral assistants that are not persisted to your account. Instead of creating a persistent assistant on the backend and sending the
assistantId
to the frontend, you can directly create a temporary assistant configuration object in the frontend and pass it to the
.start()
method when initiating the call. This way, you can avoid exposing sensitive configuration data like prompts and also prevent the unnecessary creation of persistent assistants. Each call will have its own configuration that exists only for the duration of that call. If you need further assistance with the implementation or have any more questions, feel free to ask!
You can continue this conversation by mentioning me in the message.
t
@Vapi I think that would still involve sending the system prompt in from the frontend?
@User
Any ideas @Shubham Bajaj ?
s
yeah you can use transient assistant instead.
because of no response closing this ticket.