Conversations via API
With Hyperleap AI, you can easily expose your Personas as API endpoints and enable conversational experiences in your business apps and processes.
Once Personas are authored and moved to Workspaces, they are available to be exposed as REST APIs.
With the REST API, you can easily Create a Persona Conversation, and Continue the Conversation by sending the last user message. The Conversational API supports
- Continue (Non-streaming) (entire response is sent at once)
- Continue (SSE Streaming) (response is streamed using Server Sent Events - SSE)
- Continue (HTTP/2 Streaming) (response is streamed using HTTP/2 Streaming - More efficient)
In all the cases, audit logging ensures that you keep track of AI responses and token usage.
Limitations: The API currently passes in the last 10 AI messages, to minimize issues with token lengths. Exercise caution when dealing with longer conversations.
Conversation Storage & Retrieval
All conversations are stored securely, and searchable using:
- Application API key
- User ID
- Custom headers
This makes debugging and monitoring conversations much easier.
Minimal Payload from Clients
Only the last user message is passed via the API. Rest of the conversation is maintained on Hyperleap AI end, and sent to the AI models, with an ultra-fast latency.
Monitor and Improve
Track Persona conversations and use the feedback API to collect user engagement and sentiment. Continuously improve the Persona.
No Versions
Unlike prompts, Personas do not currently support versions. Once you iteratively improve the Persona using the Persona Playground, you can update the Persona directly and changes apply in real-time.
With Hyperleap AI simple workflow, automating conversational experiences via lifelike Personas becomes quick and easy, even for non-developers. Integrate AI-powered chat into your business in no time!
Updated 8 months ago