AI Customer Support Agent for LiveAgent

This workflow automates customer support for your company by integrating LiveAgent conversations, extracting relevant conversation data, generating responses using AI models, and retrieving knowledge base documents. The AI agent handles incoming support queries, enriches context from knowledge sources, and delivers concise, professional replies in a customer-friendly format.

Thumbnail for Video
How the AI Flow works - AI Customer Support Agent for LiveAgent

Flows

How the AI Flow works

Receive Customer Query.
Collects incoming customer messages as the initial input for the workflow.
Retrieve LiveAgent Conversation Data.
Generates LiveAgent API URLs and fetches conversation records related to the customer query.
Extract and Process Conversation Content.
Parses API responses to extract key conversation data, then uses AI to summarize or extract relevant sections for further analysis.
Enrich with Knowledge Base & AI Agent.
Retrieves relevant context from the knowledge base and uses an AI agent to generate a precise, helpful response to the customer.
Deliver Final Response.
Formats and outputs the AI-generated response to the customer, ensuring the reply is clear, professional, and contains necessary information.

Prompts used in this flow

Below is a complete list of all prompts used in this flow to achieve its functionality. Prompts are the instructions given to the AI model to generate responses or perform actions. They guide the AI in understanding user intent and generating relevant outputs.

Tool Calling Agent

A tool calling agent.

                You are an AI language model assistant acting as a friendly and professional customer support and shopping assistant for Your Company. You respond in Slovak language by default, or in the customer's input language if detected to be different than Slovak. AND ALWAYS USE EMAIL TONE AND FORMAT.

<u>Your role:</u>

You combine the responsibilities of technical customer support and product recommendation assistant. You help customers solve issues, make decisions, and complete purchases related to Your Company products and services. Your tone is always friendly and professional, and your goal is to ensure the customer feels understood, supported, and confident in their next step.

<u>Your Goal:</u>

you receive conversation history and the most recent user query you goal is to answer the most recent query based on the tools at your disposal.&#x20;

<u>Identify intent and provide answers:</u>

First source: ALWAYS SEARCH THE knowledge_source_tool TO ANSWER USER'S QUESTION AND NEVER ANSWER FROM YOURSELF.

Second source: Always use the Document Retriever tool to find context related to the question.

If relevant context is found:

Use it to provide accurate, concise answers.

Include ONLY RELEVANT URLs retrieved from the Document Retriever, never edit the url.

Never invent product names and category names. You can recognize a category by the fact that the page MUST contain a list of different products.; use only those available in your knowledge base.

Follow the information exactly as stated in the reference.

If no relevant context is found and the question is about Your Company:

Ask polite clarifying questions to gather more details.

If still unresolved, use the Contact Human Assist tool to transfer to a human support agent.

If the customer’s message is unclear or incomplete:

Do not guess — always ask for more information before answering.

If the customer shows interest in a specific product:

Let them know that pricing and ordering is quick and simple directly on the website.

They can configure the product (dimensions, extras, quantity…) and see the price immediately and the production time.

If the question is about production time, always include express options if available.

For inquiries not related to Your Company:

Politely inform the customer that you only provide support for Your Company.

Suggest contacting the appropriate business support team at [Your Company@Your Company.sk](mailto:YourCompany@YourCompany.sk).

<u>Resource Utilization:</u>

Use the Document Retriever to search for knowledge relevant to the customer question.

Use the Contact Human Assist tool to escalate if needed.

Use the Document Retriever to provide valid product or info links - NEVER invent or assume URLs

<u>Formatting:</u>

Your tone is always friendly, clear, and professional.

The answers should be SHORT - max. about 100-200 tokens.

Use structured formatting:

Short paragraphs

Bold text for emphasis

Bullet points where appropriate

Emojis to make the messages more engaging 😊

Write in plain text format. Do not use markdown.

            

Components used in this flow

Below is a complete list of all components used in this flow to achieve its functionality. Components are the building blocks of every AI Flow. They allow you to create complex interactions and automate tasks by connecting various functionalities. Each component serves a specific purpose, such as handling user input, processing data, or integrating with external services.

ChatInput

The Chat Input component in FlowHunt initiates user interactions by capturing messages from the Playground. It serves as the starting point for flows, enabling the workflow to process both text and file-based inputs.

Prompt Component in FlowHunt

Learn how FlowHunt's Prompt component lets you define your AI bot’s role and behavior, ensuring relevant, personalized responses. Customize prompts and templates for effective, context-aware chatbot flows.

Create Data

The Create Data component enables you to dynamically generate structured data records with a customizable number of fields. Ideal for workflows that require the creation of new data objects on the fly, it supports flexible field configuration and seamless integration with other automation steps.

API Request

Integrate external data and services into your workflow with the API Request component. Effortlessly send HTTP requests, set custom headers, body, and query parameters, and handle multiple methods like GET and POST. Essential for connecting your automations to any web API or service.

Parse Data

The Parse Data component transforms structured data into plain text using customizable templates. It enables flexible formatting and conversion of data inputs for further use in your workflow, helping to standardize or prepare information for downstream components.

LLM OpenAI

FlowHunt supports dozens of text generation models, including models by OpenAI. Here's how to use ChatGPT in your AI tools and chatbots.

Generator

Explore the Generator component in FlowHunt—powerful AI-driven text generation using your chosen LLM model. Effortlessly create dynamic chatbot responses by combining prompts, optional system instructions, and even images as input, making it a core tool for building intelligent, conversational workflows.

Tool Calling Agent

Explore the Tool Calling Agent in FlowHunt—an advanced workflow component that enables AI agents to intelligently select and use external tools to answer complex queries. Perfect for building smart AI solutions that require dynamic tool usage, iterative reasoning, and integration with multiple resources.

Document Retriever

FlowHunt's Document Retriever enhances AI accuracy by connecting generative models to your own up-to-date documents and URLs, ensuring reliable and relevant answers using Retrieval-Augmented Generation (RAG).

Chat History Component

The Chat History component in FlowHunt enables chatbots to remember previous messages, ensuring coherent conversations and improved customer experience while optimizing memory and token usage.

Chat Output

Discover the Chat Output component in FlowHunt—finalize chatbot responses with flexible, multi-part outputs. Essential for seamless flow completion and creating advanced, interactive AI chatbots.

Flow description

Purpose and benefits

Workflow Description

This workflow is designed to automate and scale advanced customer support and knowledge retrieval tasks, making use of LLMs (Large Language Models), dynamic data creation, external API requests (such as LiveAgent), and automated document retrieval. It is especially useful for organizations seeking to streamline support processes, respond to customer queries with context-aware responses, and integrate knowledge-base lookups with external system interactions.

High-Level Overview

The workflow orchestrates these main steps:

  • Receives user input (via chat)
  • Builds dynamic API requests based on user input and context
  • Retrieves and parses data from external sources (e.g., LiveAgent)
  • Uses LLMs to extract and summarize relevant information from responses
  • Augments responses using document retrieval from a knowledge base
  • Leverages an LLM-powered agent to generate customer-ready answers, always grounded in retrieved context
  • Presents the response back to the user

Main Components and Flow

StepComponentPurpose
1Chat InputAccepts user queries or messages
2Prompt TemplateForms dynamic URLs for API requests, substituting user input and context into predefined templates
3API RequestSends HTTP requests (GET/POST) to external APIs (e.g., LiveAgent), including parameters and body as needed
4Parse DataConverts API responses (JSON/data) into plain text or structured prompts for LLM processing
5LLM GeneratorUses an LLM (e.g., OpenAI GPT-4.1) to extract specific sections (e.g., “Preview”) from input data
6Tool Calling AgentAn LLM agent that receives all context, history, and tools, and is guided by a custom system prompt
7Document RetrieverSearches knowledge sources for relevant documents based on the user’s query
8Chat OutputPresents the final answer or messages to the user

Detailed Steps

1. User Input and Context Gathering

  • The process begins with a Chat Input node, where the user’s message is received.
  • The Chat History node retrieves the last N messages, enabling context-aware responses.
  • A Prompt Template uses the user input and history to dynamically generate a URL for the external API (for example, to fetch a conversation transcript from LiveAgent).

2. API Request Construction

  • Create Data nodes allow dynamic construction of query parameters or request bodies (including secure storage of API keys or other necessary fields).
  • The generated URL and parameters are fed into an API Request node, which interacts with external systems (such as LiveAgent) to fetch the required data.

3. Data Parsing and Preprocessing

  • API responses are processed using Parse Data nodes, transforming raw data into structured text or extracting only relevant fields.
  • This parsed data is passed to the LLM Generator node, which is tasked with extracting specific information (e.g., the “Preview” section) using a well-defined system message.

4. Knowledge Augmentation

  • Meanwhile, the Document Retriever node allows the system to search within internal knowledge bases for documents highly relevant to the user’s query, further enriching the agent with authoritative context. This tool is made available to the LLM agent.

5. LLM Agent Response Generation

  • The Tool Calling Agent node is a powerful LLM-based agent which:
    • Receives user input, API responses, chat history, and access to tools (Document Retriever, Contact Human Assist, etc.)
    • Is guided by a detailed system prompt specifying:
      • Always use authoritative sources (e.g., Document Retriever, knowledge_source_tool)
      • Never invent answers or URLs
      • Ask clarifying questions if needed
      • Format responses in a friendly, professional, and concise manner
      • Use bullet points, bold text, and emojis for engaging responses
      • Always answer in Slovak (or detected user language), using an email tone
      • Escalate to human support if the query cannot be resolved
  • This ensures that every customer response is accurate, context-based, policy-compliant, and highly scalable.

6. Output to User

  • The final generated response (from the LLM agent) is parsed and formatted, then delivered to the user via Chat Output nodes.

Notes and Best Practices

  • API Key and LiveAgent Link: The workflow includes note nodes reminding the user to insert their API key and replace YOURLINK in prompt templates with their actual LiveAgent instance URL.
  • Security and Compliance: API keys and sensitive data are handled using dynamic data nodes, minimizing risk of accidental exposure.
  • Extensibility: The modular design allows for easy addition of further tools, data transformations, or output channels.

Why Is This Workflow Useful for Scaling and Automation?

  • End-to-End Automation: Integrates multiple data sources (live chat, APIs, knowledge base) and automates the decision-making and response process.
  • LLM-Powered Reasoning: Leverages state-of-the-art LLMs for contextual understanding, information extraction, and human-like communication.
  • Consistent, High-Quality Support: The agent’s system prompt enforces company policies, tone, escalation paths, and ensures no hallucinated data is provided.
  • Rapid Integration with External Systems: Easily adapt to different APIs or knowledge bases by updating prompt templates and connection nodes.
  • Human-in-the-Loop Escalation: Seamlessly hands off complex cases to human agents, ensuring coverage for edge cases.
  • Scalability: Can handle large volumes of queries in parallel, with consistent accuracy and compliance.

Summary Table of Key Nodes

Node TypeMain Role
NoteReminders and instructions for configuration
Chat Input/OutputUser interaction endpoints
Chat HistoryProvides context from previous interactions
Create DataDynamically builds API request data
Prompt TemplateGenerates query URLs or prompts
API RequestInteracts with external services
Parse DataTransforms raw data for LLM consumption
LLM GeneratorExtracts/Processes information using LLM
Document RetrieverSearches internal knowledge sources
Tool Calling AgentOrchestrates tools and generates response

This workflow is ideal for automating customer support, integrating with external ticketing or chat systems, and ensuring LLM-driven responses are always grounded in authoritative company knowledge. It can be the backbone of a scalable, intelligent support assistant ready for enterprise use.

Let us build your own AI Team

We help companies like yours to develop smart chatbots, MCP Servers, AI tools or other types of AI automation to replace human in repetitive tasks in your organization.

Learn more

AI Customer Support Agent With LiveAgent API Integration
AI Customer Support Agent With LiveAgent API Integration

AI Customer Support Agent With LiveAgent API Integration

This AI-powered workflow automates customer support by connecting user queries to company knowledge sources, external APIs (such as LiveAgent), and a language m...

5 min read
AI Support Chatbot with LiveAgent Integration
AI Support Chatbot with LiveAgent Integration

AI Support Chatbot with LiveAgent Integration

Automate your customer support with an AI chatbot that answers questions using your internal knowledge base and seamlessly connects users to a human agent via L...

4 min read