Waiting to answer a routine question, digging up the same information for the tenth customer this week, typing out a reply you’ve typed a hundred times before — chat support has always had this friction built in. AI Answer Assist removes it. Built into QuickBlox’s iOS, Android, and JavaScript SDKs, it gives your chat app an AI-powered “suggest a reply” button — one call generates a fast, contextually accurate draft response your team can send as-is or edit first.
Whether you’re building for healthcare, HR, sales, or customer support, Answer Assist plugs into your existing chat app in minutes.
Answer Assist is one of QuickBlox’s AI Agent–powered features (formerly SmartChat Assistant). Rather than your app talking to an AI provider directly, you configure an AI Agent once in the QuickBlox Dashboard, and your app calls QuickBlox with a simple ID — QuickBlox handles the rest.
The result reads as if the reply came straight from the person answering, just faster.
Answer Assist requires:
Setup is the same shape on every platform:
iOS
// Swift Concurrency
let smartChatAssistantId = "XXXXXXXXXXXXXXXXXXXXXXXX"
let messageToAssist = "What is Quickblox?"
let history = [
QBAIAnswerAssistHistoryMessage(role: .assistant, message: "History message"),
QBAIAnswerAssistHistoryMessage(role: .user, message: "Hi"),
QBAIAnswerAssistHistoryMessage(role: .assistant, message: "Hello! How can I assist you today?")
]
let result = try await QB.ai.answerAssist(withSmartChatAssistantId: smartChatAssistantId,
messageToAssist: messageToAssist,
history: history)
let answer = result.answer
// handle answer
Completion-handler (Swift) and Objective-C variants are also available — see the iOS AI Features documentation for both.
| Parameter | Type | Description |
| smartChatAssistantId | String | Your AI Agent’s ID from the Dashboard. |
| messageToAssist | String | The message you want a draft answer for. |
| history | Array | Conversation history for context — each entry has a role (.user or .assistant) and a message. |
val smartChatAssistantId = "XXXXXXXXXXXXXXXXXXXXXXXX"
val messageToAssist = "What is Quickblox?"
val history: MutableList<QBAIAnswerAssistHistoryMessage> = ArrayList()
history.add(QBAIAnswerAssistHistoryMessageImpl(Role.USER, "Hi"))
history.add(QBAIAnswerAssistHistoryMessageImpl(Role.ASSISTANT, "Hello! How can I assist you today?"))
QB.ai.answerAssist(smartChatAssistantId, messageToAssist, history)
.performAsync(object : QBEntityCallback<QBAIAnswerAssistResult?> {
override fun onSuccess(qbaiAnswerAssistResult: QBAIAnswerAssistResult?, bundle: Bundle) {
val answer = qbaiAnswerAssistResult?.message
// handle answer
}
override fun onError(exception: QBResponseException) {
// handle error
}
})
A Java equivalent is available in the Android AI Features documentation.
| Parameter | Type | Description |
| smartChatAssistantId | String | Your AI Agent’s ID from the Dashboard. |
| messageToAssist | String | The message you want a draft answer for. |
| history | List | Conversation history for context — each entry has a Role (USER or ASSISTANT) and a message. |
Web (JavaScript)
var smartChatAssistantId = '6633a1300fea600001bd6e71';
var messageToAssist = 'Where is my order?';
var history = [
{ role: "user", message: "Hello" },
{ role: "assistant", message: "Hi" }
];
QB.ai.answerAssist(smartChatAssistantId, messageToAssist, history, function (error, response) {
if (error) {
console.error('QB.ai.answerAssist: Error:', error);
} else {
console.log('QB.ai.answerAssist: Response:', response.answer);
}
});
| Argument | Type | Description |
| smartChatAssistantId | String | Your AI Agent’s ID from the Dashboard. |
| messageToAssist | String | The message you want a draft answer for. |
| history | Array | Conversation history for context — each entry has a role (user or assistant) and a message. |
| callback | Function | Called with (error, response); the draft answer is in response.answer. |
Full reference: JavaScript SDK AI Features documentation.
Answer Assist is one of several AI Agent–powered features available today:
AI Answer Assist makes it easier to add faster, AI-powered responses to your iOS, Android, or web chat app. To learn how to build with Answer Assist and other QuickBlox tools, explore our step-by-step developer tutorials.