[KongchangAI]
Tutorials· 2 min read· 1,266 words

Coze Tutorial: Complete Hands-On Guide to Building AI Agents Without Code

Coze Tutorial: Complete Hands-On Guide to Building AI Agents Without Code

A complete tutorial on building AI agents without code using ByteDance's Coze platform.

This article systematically covers the core features and usage of ByteDance's Coze platform. From creating agents and configuring prompts, to tuning LLM parameters (temperature, Top-P), extending capabilities with plugins, building private knowledge bases, implementing memory with variables and databases, and optimizing conversation experiences with triggers — it comprehensively covers every key aspect of building AI agents without code.

Introduction

Coze is an AI agent building platform launched by ByteDance. With its zero-code barrier approach, it's becoming the go-to tool for more and more people entering AI application development. You don't need programming skills — just describe your requirements in natural language, and you can build feature-rich AI agents.

This article will systematically guide you through the core features of Coze, from agent creation and LLM configuration to plugin integration, knowledge base setup, and memory functions.

Coze Agent Building Interface

Quickly Create Your First Agent

Basic Setup Process

After registering a Coze account, click "Workspace" in your personal center, then click "Create" to start building an agent. You'll need to fill in the following information:

  • Name: e.g., "Emotional Support Bot"
  • Description: Be as detailed as possible, e.g., "Provides emotional conversation services for singles"
  • Icon: Upload or auto-generate

Configuring the Prompt

The prompt is the "soul" of your agent — it defines "who you are" and "what you do" for the LLM. A good prompt typically contains three parts:

  1. Role Definition: You are an emotional support robot that specializes in providing companionship for singles
  2. Skill Description: Listening and responding, offering encouragement, proactively guiding toward positive topics
  3. Constraints: Must focus on positive emotions, never send negative messages

If you're unsure how to write a prompt, simply click the "Optimize" button — the system will automatically generate a persona and logic based on the agent's description, and you can modify and supplement from there.

Agent Prompt Configuration

Publishing and Sharing

Once your agent is created, click "Publish" in the upper right corner. You can choose to publish to the following platforms:

  • Coze Store (default)
  • Doubao
  • Feishu (Lark)
  • Douyin (TikTok China)
  • WeChat

After publishing, copy the link and share it with others. They can use your agent after registering a Coze account.

Deep Dive into LLM Parameters

Temperature (Generation Randomness)

Coze supports selecting different LLMs (Doubao, DeepSeekAd, etc.), each with adjustable parameters. The most critical one is the temperature value:

Temperature RangeUse CaseEffect
0.1-0.3Technical docs, legal documentsRigorous, highly deterministic
0.4-0.7General conversationNeither absurd nor rigid
0.8-1.0Sci-fi novels, ad copyImaginative, diverse

The principle behind temperature is adjusting the "sharpness" of the probability distribution — at low temperatures, high-probability tokens are much more likely to be selected; at high temperatures, probabilities flatten out, giving low-probability tokens a chance to be chosen.

Top-P (Nucleus Sampling)

Top-P is similar to temperature but works differently. Its mechanism: starting from the highest-probability token, it accumulates probabilities until reaching the set P value, then samples only from that subset.

For example, with Top-P set to 0.8, the system selects the candidate set whose cumulative probability reaches 80%, then randomly picks the next token from that set. A smaller P value means more conservative output; a larger P value means more diverse output.

Other Key Parameters

  • Context window (conversation turns): Default is 3 turns; increasing improves response accuracy (recommended: 10-20 turns)
  • Output format: Text or Markdown
  • Max reply length: Default 1024 tokens (approximately 1500 Chinese characters)

LLM Parameter Configuration

Plugin System: Extending Your Agent's Capabilities

LLMs aren't omniscient — they don't know real-time trending topics and can't access external websites. This is where plugins come in to extend capabilities.

Plugin Usage Examples

Scenario 1: Get Zhihu Trending Topics

  1. Click "Plugins" → the plus icon
  2. Search for "Zhihu" and find the "Zhihu Trending" plugin
  3. Click to add
  4. Ask "What's trending on Zhihu today?" — the agent automatically calls the plugin and returns results

Scenario 2: Extract Video Transcripts

Add a "Link Reader" plugin. After sending a video link, the agent automatically extracts the transcript content.

Scenario 3: Bing Image Search

Add a skill description in your prompt: "If the user inputs keywords, search Bing for three images and display them in a table." Combined with the Bing search plugin, this works seamlessly.

Core Logic: The LLM automatically determines when to call which plugin based on user input. You can also explicitly specify calling conditions in the prompt for more controllable behavior.

Knowledge Base: Building an Internal Enterprise AI Assistant

Text Knowledge Base

The knowledge base is one of Coze's most practical features, enabling AI to answer questions based on your private data. Using a "Study Abroad Knowledge Base" as an example, here are the setup steps:

  1. Create an agent and configure the prompt
  2. In the "Knowledge" module, click "Text" → Create Knowledge Base
  3. Upload local documents (supports Markdown, TXT, and other formats)
  4. Choose parsing method: auto-segmentation for plain text, precision parsing for content with images/tables
  5. Wait for processing to complete, then add to the agent

Knowledge Base Document Parsing Configuration

Once uploaded, the agent can answer questions based on your private data. For example, after uploading a "New York School Tuition" document, users asking related questions will get precise answers from the knowledge base.

Table and Image Knowledge Bases

  • Table Knowledge Base: Upload Excel/CSV files so the agent can query specific data (e.g., tuition, program duration, and other structured information)
  • Image Knowledge Base: After uploading images, you need to annotate them (supports AI-assisted or manual annotation). The annotations serve as text descriptions for image retrieval.

Memory Functions: Making Your Agent "Remember" Users

Variable Storage

Variables are ideal for storing specific field information. Add fields in "Variables" (e.g., name, age, salary), and during conversations, the agent will automatically extract and save them. Even if you clear the chat history, variable values are retained.

Database

Databases are suitable for storing structured, multi-record data. Using an "Expense Tracker" as an example:

  1. Create a database table with fields: name (text), amount (number), expense details (text)
  2. Say "Spent 100 yuan buying flowers for my girlfriend today" in conversation — the agent automatically writes to the database
  3. Later you can query "this month's expenses" or "expenses over 50 yuan"

Database and Memory Functions

Long-Term Memory

When long-term memory is enabled, the agent automatically summarizes key information from chat records and stores it. Note that this feature is uncontrollable — the system decides which information is worth remembering on its own. It's suitable for scenarios where memory precision isn't critical.

Triggers and Conversation Experience Optimization

Triggers

Triggers give your agent automation capabilities:

  • Scheduled Triggers: Automatically send messages to the agent at set times (e.g., summarize daily exchange rates every day at 4 PM)
  • Event Triggers: Receive external requests via Webhook URL, suitable for integration with other systems

Conversation Experience Configuration

FeatureDescription
Welcome MessageGreeting when users enter
Suggested QuestionsRecommend 3 follow-up questions after each reply
Quick CommandsOne-click send preset text
Background ImageCustomize chat interface background
Voice ReplyChoose a voice to read replies aloud
Cloud CallSupport real-time voice conversation

Summary

Coze's design philosophy is modular composition: the LLM handles understanding and generation, plugins extend capabilities, the knowledge base handles private data, memory handles persistent information, and triggers handle automated workflows.

By mastering the combination of these core modules, you can build AI agents for various business scenarios — whether it's emotional support chatbots, enterprise knowledge bases, or personal expense trackers, all achievable through Coze without writing a single line of code.

Share:

Related articles