> For the complete documentation index, see [llms.txt](https://docs.clickai.vn/clickai-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clickai.vn/clickai-docs/clickai-docs-en/developer/build-application-ai-agent-workflows.md).

# Build Application, AI Agent, Workflows

<figure><img src="/files/9m6LVjzLhRsIqZb9k1nW" alt=""><figcaption></figcaption></figure>

## Table of Contents

·       \[Introduction]\(#introduction)

·       \[Application Types]\(#application-types)

·       \[Workflow & Chatflow Editor]\(#workflow--chatflow-editor)

·       \[App Toolkit — Extended Features]\(#app-toolkit--extended-features)

·       \[Build Process]\(#build-process)

·       \[Best Practices]\(#best-practices)

&#x20;

## Introduction

ClickAI Studio provides a visual development environment for building AI applications — from simple chatbots to complex automation workflows. The platform supports multiple application types, each optimized for different use cases.

💡 TIP: You don't need programming experience to start building AI applications on ClickAI. The drag-and-drop interface enables anyone to create professional AI applications.

&#x20;

## Application Types

### 1. Chatbot & Agent

AI Agent at Click AI built by Agentic Architecture, it capable of autonomous reasoning, planning, and using tools to complete complex tasks.Interactive conversational application using Large Language Models (LLM) for Q\&A.

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Feature</td><td valign="top">Description</td></tr><tr><td valign="top">Communication</td><td valign="top">Multi-turn conversation</td></tr><tr><td valign="top">Input</td><td valign="top">Text messages from users</td></tr><tr><td valign="top">Output</td><td valign="top">AI-generated text responses</td></tr><tr><td valign="top">Use Cases</td><td valign="top">Customer support, virtual assistant, FAQ bot</td></tr></tbody></table>

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Feature</td><td valign="top">Description</td></tr><tr><td valign="top">Capability</td><td valign="top">Auto-select and use tools</td></tr><tr><td valign="top">Reasoning</td><td valign="top">Chain-of-thought reasoning</td></tr><tr><td valign="top">Tools</td><td valign="top">Web search, Code interpreter, API calls, ...</td></tr><tr><td valign="top">Use Cases</td><td valign="top">Market research, data analysis, automation</td></tr></tbody></table>

&#x20;

<figure><img src="/files/zpGE2p2YQO0KQGqg6ZRi" alt=""><figcaption></figcaption></figure>

⚠️ IMPORTANT: Agents can call multiple tools in a single processing turn. Ensure correct permissions are configured for connected tools.

### 2. Workflow

Automated processing pipeline — sequential execution from start to finish, no conversational interaction.

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Feature</td><td valign="top">Description</td></tr><tr><td valign="top">Execution</td><td valign="top">Sequential, batch processing</td></tr><tr><td valign="top">Input</td><td valign="top">Input variables</td></tr><tr><td valign="top">Output</td><td valign="top">Final processing result</td></tr><tr><td valign="top">Use Cases</td><td valign="top">ETL data, report generation, batch processing</td></tr></tbody></table>

<figure><img src="/files/cNdxzygUw7ZerdTzUdfj" alt=""><figcaption></figcaption></figure>

### 3. Chatflow

Combines the power of Workflow with a conversational interface — enables building complex chatbots with multi-layer processing logic.

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Feature</td><td valign="top">Description</td></tr><tr><td valign="top">Communication</td><td valign="top">Conversation + branching logic</td></tr><tr><td valign="top">Power</td><td valign="top">All Workflow nodes + chat context</td></tr><tr><td valign="top">Use Cases</td><td valign="top">Complex customer service, step-by-step guidance</td></tr></tbody></table>

## Workflow & Chatflow Editor

### Core Nodes

ClickAI provides a rich node system for building processing logic:

#### 🔄 Flow Control

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Node</td><td valign="top">Function</td></tr><tr><td valign="top">Start</td><td valign="top">Entry point, define inputs</td></tr><tr><td valign="top">End</td><td valign="top">Exit point, return results</td></tr><tr><td valign="top">IF/ELSE</td><td valign="top">Conditional branching logic</td></tr><tr><td valign="top">Iteration</td><td valign="top">Loop through item lists</td></tr><tr><td valign="top">Loop</td><td valign="top">Loop with stop condition</td></tr><tr><td valign="top">Parameter Extractor</td><td valign="top">Extract parameters from natural language</td></tr></tbody></table>

<figure><img src="/files/xBAK6OhgruQZJDFsi3S9" alt=""><figcaption></figcaption></figure>

#### 🧠 Model

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Node</td><td valign="top">Function</td></tr><tr><td valign="top">LLM</td><td valign="top">Call Large Language Models (GPT, Claude, Gemini, ...)</td></tr><tr><td valign="top">Knowledge Retrieval</td><td valign="top">Query Knowledge Base</td></tr><tr><td valign="top">Question Classifier</td><td valign="top">Classify user questions</td></tr></tbody></table>

#### 🔧 Tools

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Node</td><td valign="top">Function</td></tr><tr><td valign="top">Code</td><td valign="top">Run custom Python / JavaScript code</td></tr><tr><td valign="top">HTTP Request</td><td valign="top">Call external APIs</td></tr><tr><td valign="top">Template</td><td valign="top">Format output with Jinja2 templates</td></tr><tr><td valign="top">Variable Assigner</td><td valign="top">Assign values to variables</td></tr></tbody></table>

#### 📤 Output

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Node</td><td valign="top">Function</td></tr><tr><td valign="top">Answer</td><td valign="top">Reply directly to user (Chatflow)</td></tr><tr><td valign="top">End</td><td valign="top">Return final result (Workflow)</td></tr></tbody></table>

&#x20;

### Variables & Data

ClickAI supports the following variable types:

·       Input Variables: User-provided input variables

·       Environment Variables: Environment variables (API keys, secrets)

·       Conversation Variables: Session-scoped variables

·       System Variables: sys.query, sys.user\_id, sys.conversation\_id, ...

&#x20;

## App Toolkit — Extended Features

Optional features to enhance your applications:

### 💬 Conversation Opener

Set up welcome messages and initial question suggestions for users.

### 🔄 Follow-up

Automatically suggest follow-up questions based on conversation context.

### 🔊 Text to Speech (TTS)

Convert text responses to natural speech.

### 🎤 Speech to Text (STT)

Allow users to input via voice.

### 📎 File Upload

Allow file uploads as input:

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">File Type</td><td valign="top">Default Limit</td></tr><tr><td valign="top">Image</td><td valign="top">10 MB</td></tr><tr><td valign="top">Document</td><td valign="top">15 MB</td></tr><tr><td valign="top">Audio</td><td valign="top">50 MB</td></tr><tr><td valign="top">Video</td><td valign="top">100 MB</td></tr></tbody></table>

### 📝 Citations & Attributions

Display source citations from Knowledge Base, helping users verify information.

### 🛡️ Content Moderation

Filter inappropriate content with 3 methods:

7\.     OpenAI Moderation: Dedicated moderation model

8\.     Keywords: Blocked keyword list

9\.     API Extension: Custom content filtering API

### ✏️ Annotation Reply

Create a library of standard responses, bypassing AI when encountering annotated questions.

## Build Process

<table data-header-hidden><thead><tr><th valign="top"></th><th valign="top"></th><th valign="top"></th></tr></thead><tbody><tr><td valign="top">Step</td><td valign="top">Action</td><td valign="top">Details</td></tr><tr><td valign="top">1</td><td valign="top">Define Use Case</td><td valign="top">Clearly identify purpose and target audience</td></tr><tr><td valign="top">2</td><td valign="top">Choose App Type</td><td valign="top">Chatbot, Agent, Workflow, or Chatflow</td></tr><tr><td valign="top">3</td><td valign="top">Configure Model</td><td valign="top">Select LLM, write System Prompt</td></tr><tr><td valign="top">4</td><td valign="top">Connect Knowledge</td><td valign="top">Upload documents to Knowledge Base</td></tr><tr><td valign="top">5</td><td valign="top">Add Tools</td><td valign="top">Connect APIs, plugins, custom code</td></tr><tr><td valign="top">6</td><td valign="top">Debug &#x26; Preview</td><td valign="top">Test directly in Studio</td></tr><tr><td valign="top">7</td><td valign="top">Publish</td><td valign="top">Deploy via Web App, API, or Embed</td></tr></tbody></table>

## Best Practices

💡 TIP: \*\*Effective System Prompts:\*\* Define clear role and response style, set explicit scope boundaries, use few-shot examples.

🚨 WARNING: \*\*Important Notes:\*\* Always test thoroughly before publishing to production. Set up Content Moderation for public-facing apps. Monitor token usage to control costs.

&#x20;

*📖 Next: \[Publish — Deploy Applications]*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.clickai.vn/clickai-docs/clickai-docs-en/developer/build-application-ai-agent-workflows.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
