Coder Social home page Coder Social logo

brandos's Introduction

๐Ÿ” BrandOS

Realtime Brand Monitoring and Analysis

GitHub Contributors GitHub Last Commit GitHub Repo Size GitHub Stars GitHub Forks Github License Twitter


Overview โ€ข Features โ€ข Prerequisites โ€ข Installation โ€ข Usage โ€ข Functions โ€ข License


BrandOS is a Python script that utilizes the Anthropic API and You Web LLM Search to monitor, analyze, and suggest actions for a brand to maintain unique differentiation. This project is based on Maestro by Doriandarko.


๐Ÿ“– Overview

BrandOS contains the code and instructions needed to build a sophisticated brand monitoring and analysis tool that leverages the capabilities of Anthropic API and You Web LLM Search. Designed to efficiently break down objectives into sub-tasks, generate prompts for sub-agents, and refine the results into a cohesive final output, this project is an ideal starting point for developers interested in brand management and natural language processing.

๐ŸŽ›๏ธ Features

  • Utilizes the Anthropic API for natural language processing and generation
  • Integrates with the You Web LLM Search API for QnA search functionality
  • Breaks down the objective into sub-tasks using an orchestrator
  • Generates prompts for sub-agents to execute the sub-tasks
  • Refines the sub-task results into a cohesive final output
  • Provides a list of competitors, keyword search terms to monitor, and suggested actions for the brand
  • Saves the full exchange log to a Markdown file

๐Ÿ“‹ Prerequisites

Before running the script, make sure you have the following:

  • Python 3.x installed
  • Required Python packages: os, re, json, dotenv, anthropic, rich, datetime
  • Anthropic API key (stored in a .env file as ANTHROPIC_API_KEY)
  • You Web LLM Search API key (stored in a .env file as You Web LLM Search_API_KEY)

๐Ÿš€ Installation

  1. Clone the repository or download the script file.

  2. Install the required Python packages by running the following command:

    pip install os re json dotenv anthropic You Web LLM Search rich datetime
    
  3. Create a .env file in the same directory as the script and add your Anthropic and You Web LLM Search API keys:

    ANTHROPIC_API_KEY=your_anthropic_api_key
    You Web LLM Search_API_KEY=your_You Web LLM Search_api_key
    

๐Ÿ’ป Usage

  1. Run the script using the following command:

    python brandos.py
    
  2. When prompted, enter the following information about the brand:

    • Brand URL
    • Brand mission
    • Brand vision
    • Brand values
  3. Choose whether you want to use search functionality by entering 'y' or 'n'.

  4. The script will start the process of monitoring, analyzing, and suggesting actions for the brand. It will break down the objective into sub-tasks, generate prompts for sub-agents, and refine the results.

  5. The final output will be displayed in the console, including a list of competitors, keyword search terms to monitor, and suggested actions for the brand.

  6. The full exchange log will be saved to a Markdown file with a timestamp and the sanitized brand name.

๐Ÿงฉ Functions

  • calculate_subagent_cost(model, input_tokens, output_tokens): Calculates the cost of a sub-agent based on the model and token usage.
  • opus_orchestrator(brand_info, previous_results=None, use_search=False): Calls the orchestrator to break down the objective into sub-tasks and generate prompts for sub-agents.
  • haiku_sub_agent(prompt, search_query=None, previous_haiku_tasks=None, continuation=False): Calls the sub-agent to execute a sub-task based on the provided prompt and search query.
  • opus_refine(brand_info, sub_task_results, filename, continuation=False): Calls Opus to review and refine the sub-task results into a cohesive final output.

๐Ÿ“„ License

BrandOS is open-source and licensed under MIT.

brandos's People

Contributors

amadad avatar

Stargazers

 avatar  avatar  avatar  avatar Hertzel Karbasi avatar Maurits Bos avatar Ashish Patel avatar Yang Sun avatar Joe Swann avatar

Watchers

 avatar Kostas Georgiou avatar

Forkers

mivanovitch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.