Written Chat and Voice Chat simultanously
# support
f
How can i do a Landing Webpage where there will be the VAPI voice chat and written chat simultanously ? - so that the user can anytime write or talk both wqys whatever the user prefers?
u
Hello,
your idea is very interesting
could you explain your idea in more detail?
f
Since the voice bot is doing text to speech and speech to text anyways, i just would like to have the possibillity to follow the conversation paralle to the talking in written words (wichi is already done by the transcript) and at the saem time have the possibillity to enter text if i can not talk (e.g. certain offcie environments, louid environments). in my naive opinion this coule be done the same way that vapi has it already. The answer i have so far might be the fastest even if not best way to do it: Vapi as a platform supports multimodal interaction. However, the specific tool i am using (the client-side script tag) is specialized for adding the voice component easily. To add a parallel text chat interface that interacts with the same assistant logic, I currently need to build the chat UI and create a backend route to handle the text message processing, likely by calling Vapi's server-side APIs or the assistant's core LLM/logic directly. Think of the script tag as the "voice interaction driver" for the browser, not a complete multimodal UI kit.
k
Integrate Vapi Web SDK for voice interaction, add a simple chat interface for text input, and provide toggle buttons to switch between modes, allowing users to choose either voice or text at any time..
h
to use text to text, it will still need microphone permission as the call needs to start? and then we can use add-message to send the user's query and use transcript from the call to answer the user's query? this feels like a workaround. is there any future plan for official support of text to text by api endpoints?
k
Yes, Vapi still requires microphone permission to start a call even for text-to-text via add-message, and while this is a workaround using transcripts, there’s no confirmed plan yet for official text-to-text API, reach out to support@vapi.ai for updates thanks
f
i am not getting it done. if any interest i can post the entire code here.
k
You can
f
i gave up onm the project - if someone found a solution - let me know...
h
haha bro i can help you
dont give up so early
its very easy
k
Please share your issues here
f
maybe for you bu not for me. i just need to finish it quickly for a presentation. am not a programmer and treid in the lovable app creator.
v
@flengel, I understand your frustration. Currently, Vapi doesn't have a dedicated public text chat API that can be easily implemented alongside our voice interface. While our Web SDK supports voice interaction brilliantly, adding simultaneous text capabilities requires custom development: 1\. You can use our Web SDK for voice and create your own text input UI 2\. Use the SDK's add-message method to send text inputs during a call 3\. Display the transcript to show the conversation This approach does have limitations: \- Requires microphone permissions even for text interactions \- Needs programming skills to implement the custom UI and integration \- The call must be started before text messages can be sent For someone using a no-code platform, this represents a significant challenge. We're noting this use case for our product roadmap, but for your immediate presentation needs, you might consider: \- Focusing on just the voice interface capabilities \- Working with a developer who can help implement the custom solution \- Using screen recording of our demo with narration explaining the dual-mode concept Let me know if you'd like more specific technical guidance on any of these approaches.
f
I didi that, but the results are not as projected. However i agree that the voice functions of vapi are great. For cases where i want to have a form and interactively exchange with a client information like calender date, webseite info, forms and more there is a solution needed that can do that. by any chance do you know: it ist still possible to connect vapi with voceiflow - i am unsure - it used to work but then not anymore?
my technical aproach would be to seemles integrate interaction from user to the voice bot on several levels, especially regarding forms.
s
ccing: @Kings_big💫 Can you please help him @flengel
f
it s ok - i will not do it for now - but i would be interested to learn how to connect a knwoledge base to my vapit bot - let us say a supabase sql database - how can i tell teh vapi bot to access it for certrain information?
k
By setting up a server endpoint via the Server URL, which handles function calls, queries Supabase, and returns the results as JSON to the assistant.