Prompt
Prompt template for constructing API URL with dynamic human input.
This AI workflow automatically classifies incoming emails as spam or not, and intelligently routes legitimate messages to an AI assistant that leverages company knowledge sources to provide professional support responses. It integrates document retrieval, advanced LLMs, and API interactions for seamless customer support automation.

Flows
Prompt template for constructing API URL with dynamic human input.
Prompt template for spam message output.
Prompt template for constructing API URL with dynamic input.
Prompt template for constructing API URL with dynamic human input.
System prompt for LLM to classify emails as spam or not.
System prompt for LLM to extract Preview sections from input.
System prompt for LLM agent to act as a professional customer support assistant.
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.
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.
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.
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.
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.
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.
The Conditional Router component enables dynamic decision-making within your workflow. It compares input text against a specified value using various operators—such as equals, contains, or is empty—and routes the message to different outputs based on the comparison result. This allows you to branch your flow logic, creating personalized and intelligent workflows that adapt to user input.
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.
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.
FlowHunt supports dozens of text generation models, including models by OpenAI. Here's how to use ChatGPT in your AI tools and chatbots.
FlowHunt supports dozens of AI models, including Claude models by Anthropic. Learn how to use Claude in your AI tools and chatbots with customizable settings for tailored responses.
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.
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.
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).
The Note component in FlowHunt lets you add comments and documentation directly into your workflow. Use it to clarify, annotate, or provide instructions within your flow, making complex automations easier to understand and maintain.
Flow description
This workflow is designed to automate and scale the processing, classification, and routing of business emails and chat messages, with a particular focus on customer support scenarios. It uses a combination of AI-powered classification, conditional logic, API integrations, and context-aware agent responses, making it highly useful for organizations looking to streamline customer support, detect spam, and integrate AI agents with external systems like LiveAgent.
The flow consists of two main branches:
Spam Routing Logic Table:
| Step | Tool/Node | Purpose |
|---|---|---|
| Message Input | ChatInput | Receives user/customer message |
| Prompt for API | PromptTemplate | Formats message for LiveAgent API |
| API Call | APIRequest | Sends/gets message data |
| Parse Data | ParseData | Extracts message preview |
| Spam LLM Classifier | Generator (OpenAI) | Classifies as spam or not |
| Conditional Router | ConditionalRouter | Routes based on LLM output |
| Spam Notification | PromptTemplate & ChatOutput | Standard response for spam |
| Not Spam | Passes to Support Agent | For further human-like handling |
Agent Response Logic Table:
| Step | Tool/Node | Purpose |
|---|---|---|
| Document Retriever | DocumentRetriever | Fetches relevant context from knowledge base |
| Chat History | ChatHistory | Supplies recent conversation context |
| LLM Model | Anthropic Claude | Provides advanced language understanding |
| Tool Calling Agent | ToolCallingAgent | Combines tools, context, and policies to respond |
| Output | ChatOutput | Sends response to chat/playground |
| API Forwarding | APIRequest/ParseData | Optionally forwards for logging/LiveAgent |
This workflow provides a robust, scalable architecture for automating customer communication, ensuring both efficiency and high-quality, policy-compliant responses. Its modularity allows for easy expansion as your business grows or as new automation needs arise.
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.
Deploy an AI-powered chatbot on your website that leverages your internal knowledge base to answer customer queries, and seamlessly forwards complex or unresolv...
Streamline your Gmail workflow with an AI-powered assistant that can search, organize, and manage emails, create and send new messages, and automate label manag...
An AI-powered customer service chatbot that automatically assists users, retrieves information from internal documents and the web, and seamlessly escalates to ...
Cookie Consent
We use cookies to enhance your browsing experience and analyze our traffic. See our privacy policy.



