Skip to main content

Creating Bots

Learn how to create and configure Bot agents.

What is a Bot?

A Bot is an interactive AI agent that responds to user commands and queries. Bots are ideal for:

  • Chat interfaces
  • Command-line assistants
  • Interactive workflows

Creating a Bot

Basic Configuration

Create a YAML file for your bot:

name: helper-bot
type: bot
description: An interactive assistant

model:
provider: openai
name: gpt-4
temperature: 0.5

skills:
- question-answering
- task-execution

Using the CLI

wegent bot create -f helper-bot.yaml

Interacting with Bots

Starting a Chat Session

wegent bot chat helper-bot

Sending Commands

wegent bot run helper-bot "Review this code"

Configuration Options

OptionDescriptionRequired
nameUnique identifierYes
typeMust be botYes
modelAI model configurationYes
skillsList of skill namesNo
personaBot personality settingsNo

Best Practices

  • Design clear interaction patterns
  • Set appropriate response lengths
  • Handle errors gracefully
  • Provide helpful feedback