Skip to main content
The --init flag initializes a new agents.yaml configuration file with intelligent tool discovery - automatically assigning the most appropriate tools based on your task description.

Quick Start

praisonai --init "Research stock prices and create a financial report"

Usage

praisonai --init [topic] [options]

Options

OptionDescription
--initInitialize agents with optional topic
--frameworkFramework to use (crewai, autogen, praisonai)
--mergeMerge with existing agents.yaml

Intelligent Tool Discovery

The init command analyzes your task and automatically assigns tools from 9 categories:
CategoryExample ToolsKeywords
Web Searchinternet_search, tavily_searchsearch, find, look up
Web Scrapingscrape_page, crawlscrape, crawl, extract
File Operationsread_file, write_fileread, save, load
Code Executionexecute_commandexecute, run, script
Data Processingread_csv, write_csvcsv, excel, json
Researchsearch_arxiv, wiki_searchresearch, paper, academic
Financeget_stock_pricestock, price, financial
Mathevaluate, solve_equationcalculate, math
Databasequery, find_documentsdatabase, sql, mongodb

Examples

Financial Research

praisonai --init "Research stock prices and create a financial report"
Generated agents.yaml:
framework: praisonai
topic: Research stock prices and create a financial report
roles:
  financial_researcher:
    role: Financial Analyst
    goal: Research stock prices and compile a detailed financial report
    tools:
    - internet_search
    - get_stock_price
    - get_stock_info
    - get_historical_data
    - write_file

Web Scraping Pipeline

praisonai --init "Scrape websites for product data and save to CSV"
Generated agents.yaml:
roles:
  data_scraper:
    role: Web Scraping Specialist
    tools: [scrape_page, extract_links, crawl, extract_text]
  data_processor:
    role: Data Processing Specialist
    tools: [write_csv, read_csv, analyze_csv]

With Framework

praisonai --init "Data Pipeline" --framework praisonai

How It Works

  1. Task Analysis: Analyzes complexity (simple → 1 agent, complex → 3-4 agents)
  2. Keyword Matching: Identifies relevant tool categories
  3. Tool Assignment: Assigns appropriate tools from 50+ available
  4. YAML Generation: Creates ready-to-use agents.yaml

Next Steps

After initialization:
  1. Review the generated agents.yaml
  2. Customize agents if needed
  3. Run with praisonai agents.yaml