Call Session Memory
# support
v
Is there a way to store temporary variables within the VAPI call session memory that the assistant can access during the call? Not when starting the call with override variables, but to update them during the call to change the context.
k
Vapi doesn’t support updating variableValues mid-call, but you can retain context using semantic caching or manage dynamic state externally via webhooks or APIs during the call..
d
@Kings_big💫 Does the new Vapi workflow not support "connection of workflow to assistant"?
k
The new Vapi workflow no longer connects directly to Assistants instead, workflows run independently and are triggered via phone numbers or event..
d
Yeah, I noticed that. I replaced my previous assistant id with my new workflow id, tried connecting on my website, but it doesn't.
a
Can you send me a loom video to understand more about it?
@Shubham Bajaj ???
s
I see, well what you can do is use live call control https://docs.vapi.ai/calls/call-features and through that you can inject the data.
d
I think the problem is that it works if I use my old assistant id. since when you've a new update, saying that we can use workflow id directly, that was when I created a new workflow and replaced it with the id and the error log says "Couldn't Get Assistant" while I'm using a workflow id, could've said "Couldn't Get Workflow" instead. @Sahil @Shubham Bajaj ???
s
Hey! When you create web calls using Web SDK, this time you have to pass workflow ID as the 4th parameter. The first parameter is reserved for Assistant ID, the second for Transient Assistant, the third one for SQuAD, and the 4th one for Workflow ID. So pass the first three parameters as NULL and then the 4th one with the workflow ID if you are using Web SDK. Correct me if I'm wrong
d
Can you provide a code example for the parameters? In my implementation, I only passed the id to vapi.start. here's my example implementation when starting a conversation
Copy code
const startVapiConversation = async (): Promise<boolean> => {
    try {
      if (type === "generate") {
        await vapi.start(process.env.NEXT_PUBLIC_VAPI_WORKFLOW_ID!, {
          variableValues: {
            username: userName,
            userid: userId,
          },
        });
      } else {
        const formattedQuestions = formatQuestions(questions);
        await vapi.start(interviewer, {
          variableValues: {
            questions: formattedQuestions,
          },
        });
      }
      return true;
    } catch (error) {
      console.error("Failed to start Vapi conversation:", error);
      return false;
    }
  };
@Shubham Bajaj
fixed, it was because I was in the old version that was why passing null shows error
would be happy talk more about this during today's event
I have been able to resolve it, but there's another bug 😪
s
Can you share the steps to reproduce this?
@Sahil @Shubham Bajaj
s
Hey there, I think we're having a bit of a misunderstanding here. I'm referring to the shared screenshot you provided earlier, where you're encountering an error. However, what you've actually shared is a workflow video and workflow property screenshot that doesn't clearly illustrate how we can reproduce this error. If I'm understanding correctly, you're trying to convey that using the workflow you mentioned results in an error on the VAPI dashboard. If that's the case, could you please share your WORKFLOW ID so I can investigate the logs further?
d
you seem to be the one misunderstanding here, I already replied to the earlier bug, saying "Fixed" then I said there's another bug You said I should provide steps to reproduce, and I clearly said that my voice agent is "asking the same questions multiple times" with a video. What's hard to understand there? call id: 33cbc0cb-2756-43c9-a2eb-404e706d30ba
@Kings_big💫 you seem to be online, can you help here?
s
@druxamb.base.eth @Vazgen Our vision for workflows was to create an AI assistant or automation board that seamlessly handles common issues like prompting, hallucination, and logical flow management. By controlling the logic through our end, we aim to provide a smooth experience where users can focus on conversational notes and other communication aspects. However, we encountered challenges with the workflow, particularly with repetitions. This issue was persistent and required multiple fixes, affecting not only you but also other users who reported similar problems. We value your feedback and assistance in resolving these issues. Could you take some time this week to try the updated workflow in front of me? With the recent changes, we can discuss and implement any suggestions you might have to enhance the experience.
d
Alright, the old workflow + assistant was all cool and works pretty much fine. When's the best time to share this with you? kindly share the link to you cal or calendly @Shubham Bajaj
Retell team had requested to book a call with me and help me navigate. I have been stuck on this bug since last week without any guidance on how to fix it. If I don't get it resolved, then I'll have to switch to Retell.
@Kings_big💫 you responded to my mail, I replied, but you didn't respond.
k
Cc: @Shubham Bajaj
s
Thanks @druxamb.base.eth I am looking into your issue reported in another thread, for meet please check your DM.