Skip to main content
AI Chatbots

Function "generateanswer"

The generateanswer function works by default in new virtual assistant scenarios. It is placed in a self-loop with the lowest priority under Virtual assistant replies, and no additional setup is needed.

Diagram showing the 'generateanswer' function in a self-loop.

Outputs are associated with the function by their corresponding identifier and are added to the Outputs view by default. You can freely modify the output values and translate them into other virtual assistant languages as needed.

Output IDExample of a valueExplanation
system_text_no_answerSorry, I don't know.This output is used when the text generation model has not generated an answer.
system_text_error_answerI didn't understand the question, please ask again!This output is used when the model detects a question as unethical or otherwise fails to generate an answer.
system_text_read_moreRead more:This text appears in the chat before a reference link to more information.
system_text_promptPlease answer in friendly, simple sentences. Give examples...This is the prompt, which helps the model produce accurate answers. It should be detailed and preferably written in English. You can test its effectiveness in the Knowledge base view via the Knowledge test feature.
Legacy Virtual Assistants

For virtual assistants created before 2024, please contact the developers of the virtual assistant management site to add this function.