Quick Start - Sample IT Assistant
Let's learn how to use the main endpoints to interact with your sample Assistant.
Important: You must already have an account on our Alan platform.
Postman Collection
Don't forget! We have Postman collection that cover's our endpoints. You can find it on our side bar.
Get your API keys
Your API requests are authenticated using API keys. Any request that doesn't include an API key will get 403.
You can get your API key in Settings -> Development -> Development Token

Make your first request
To make your first request, send an authenticated request to the pets endpoint. This will create a pet, which is nice.
Create Assistant
POST https://backend.az.misterturing.com/v4.0/assistant/
Request Body
name*
string
Assistant name
description
string
The description of the main goal of the Assistant.
Response Body
We return all information related to the Assistant, including the assistant_preferences , that determines how your iFrame youu be rendered. You can customize it via platform.
Take a look at how you might call this method via curl:
Interacting with Assistant
To initiate a conversation with the Assistant you should first generate a preview version of it.
That means the Assistant will be configured using your latest changes on the Flows, Extractions and Folders.
To achieve that you can use the deploy endpoint.
POST https://backend.az.misterturing.com/v4.0/assistant/deploy/
Request Body
assistant_id*
string
Assistant external_id created above.
Take a look at how you might call this method via curl:
Now we can go to the next step: create the Conversation.
Conversation
Conversation is how the Assistant maintains the context of the messages exchanged between the user and the assistant.
POST
https://backend.az.misterturing.com/v4.0/assistant/conversation/
Request Body
assistant_id*
string
Assistant external_id created above.
Take a look at how you might call this method via curl:
Send a Message
Now with your Conversation created you send a message using the Chat endpoint.
POST https://backend.az.misterturing.com/v4.0/assistant/chat/
Request Body
message*
string
Your message.
conversation_id
string
Previously created conversation_id.
Chat Response
We stream back to you the response text of the Assistant response using the Content-type: text/event-stream; charset=utf-8
Take a look at how you might call this method via curl:
Last updated