Chat quickstart
Build your first text-based conversation with a Vapi assistant in 5 minutes
Overview
Build a customer service chat bot that can handle text-based conversations through your application. Perfect for adding AI chat to websites, mobile apps, or messaging platforms.
What You’ll Build:
- A working chat integration that responds to user messages
- Context-aware conversations that remember previous messages
- Both one-shot and multi-turn conversation patterns
Agent Capabilities:
- Instant text responses without voice processing
- Maintains conversation context across multiple messages
- Compatible with existing OpenAI workflows
Prerequisites
- A Vapi account
- An existing assistant or willingness to create one
- Basic knowledge of making API requests
Scenario
We’ll create a customer support chat for “TechFlow”, a software company that wants to handle common questions via text chat before escalating to human agents.
1. Get Your API Credentials
2. Create or Select an Assistant
3. Send Your First Chat Message
4. Build a Multi-Turn Conversation
5. Pass Dynamic Variables
6. Integrate with TypeScript
7. Test Your Chat Bot
Limitations
Current chat functionality limitations:
- “Query” tool for knowledge-base searches is not yet supported
- Server webhook events (status updates, end-of-call reports, etc.) are not supported
Next Steps
Take your chat bot to the next level:
- Streaming responses - Add real-time typing indicators and progressive responses
- Non-streaming responses - Learn about sessions and complex conversation flows
- Session management - Learn advanced context management with sessions and previousChatId
- OpenAI compatibility - Integrate with existing OpenAI workflows