The 7en Platform API is built around REST principles and WebSocket for real-time interactions. It features predictable resource-oriented URLs, JSON request and response bodies, standard HTTP status codes, and API key authentication. Use it to programmatically create agents, manage knowledge sources, and integrate real-time AI capabilities into your own products.
Store your API key securely. Never expose it in client-side code or commit it to version control.
Integrate real-time chat into your application using our WebSocket endpoint. This allows for persistent connections and low-latency bot responses.
WebSocket URL
Example Response
Optimization Strategies:
- Use WebSocket for Chat: For real-time responses, WebSocket provides better perceived performance than polling.
- Cache Agent Config: Store agent configuration locally to reduce unnecessary API calls.
- Monitor Context: Manage conversation history length to optimize token usage and processing speed.
Start building intelligent AI agents to engage with customers.