Q&A nodes with AI
Learn how to use Q&A nodes in your workflows.
Overview
Actioner lets you use the power of AI in your workflows. An AI-powered Q&A node refers to a component that utilizes artificial intelligence (AI) to assist with questions and answers. This node typically leverages AI to understand and respond to your queries and questions.
All you need to provide is the comment and documents. AI agent returns an answer to the given comment based on the provided documents.
You can use Q&A nodes for extracting responses from your app's documents based on user comments. This can be particularly valuable for automating responses to inquiries and ensuring that the answers are derived from relevant documentation.
The ability to create and manage documents provides flexibility in organizing and maintaining the knowledge base that the AI agent uses for generating responses.
Overall, the Q&A node in Actioner is a powerful tool for enhancing user interactions and streamlining the process of retrieving information from documents.
How Q&A nodes work
Here's how it works:
Comment: It is the questions or queries that you input for the AI agent.
Messages: It is the additional messages that provide instructions that refer to prior messages.
Documents: They are the knowledge bases for the AI agent to generate its answer based on.
AI processing: The AI-powered Q&A node processes the comment using AI algorithms. It attempts to understand the intent and context of the question.
Answer generation: Based on the analysis, the AI agent generates a relevant and accurate answer to the comment. This answer is sourced from the set of given documents.
Response: The generated answer is then presented as a response to the query.
AI-powered Q&A nodes are often used in chatbots, virtual assistants, customer support systems, and search engines to provide quick and relevant responses to user questions, enhancing user experiences and streamlining information retrieval processes. They can be particularly valuable for handling large volumes of inquiries efficiently and accurately.
How to configure a Q&A node
To add a new Q&A node into your workflow:
- Click + button in your canvas and select AI option and then select Q&A.
- On the opening left panel, enter the Comment. You can use data in your workflow such as data from your inputs, event or from the responses of earlier nodes.
- Enter your messages in Messages field.
To generate an answer, you can provide a list of messages as input. It's important to include past messages when asking questions that refer to them. You can include a conversation history in messages parameter and provide additional instructions. For further information, visit Chat Completions API page.
Messages must be an array of objects, where each object has a role
(either system
, user
, or assistant
) and content
. Conversations can be as short as one message or many back and forth turns.
A typical conversation starts with a system
message that tells the AI how to behave, followed by user
and assistant
messages.
system
messages help set the behavior of the assistant.user
messages provide requests or comments for the assistant to respond to.assistant
messages store prior assistant responses. You can use this role to give examples of desired behavior.
An example messages parameter like the following:
[
{
"role":"user",
"content":"I need a short summary for a project report."
},
{
"role":"assistant",
"content":"Sure, I can help with that. What's the project about?"
},
{
"role":"system",
"content":"Please share more information about the project."
}
]
Select your knowledge base on DOCUMENTS field. You can add your documents by their name or by their tag.
To retrieve the answer from your Q&A node, you can use
nodes.qA0.response.answer
syntax whereqA0
is the alias of your Q&A node.