Skip to content

OctagonAI/octagon-excel-functions

Repository files navigation

Octagon AI for Excel

Access specialized AI agents for market intelligence directly in Excel spreadsheets

An Excel add-in that integrates Octagon's AI Agents API with Excel, providing custom functions for financial and market research. Use the power of specialized AI agents for analyzing SEC filings, earnings transcripts, stock data, private market intelligence, and more directly from your Excel formulas.

Features

  • 🔑 API Integration: Securely use your Octagon AI API key
  • 📊 Custom Excel Functions: Call specialized AI agents with =OCTAGON.OCTAGON_AGENT(), =OCTAGON.DEEP_RESEARCH_AGENT(), and more
  • 🔄 Smart Routing: The main Octagon Agent automatically routes queries to the most appropriate specialized agent
  • 🔍 Deep Research: Access comprehensive research on financial topics
  • 🌐 Web Scraping: Extract structured data from websites
  • 📈 Market Intelligence: Get intelligent insights on financial data

Why This Add-in

  • Free - Use your own API key
  • Confidential - API calls go directly from Excel to Octagon
  • Secure - No data stored or processed outside of your spreadsheet
  • Professional - Built specifically for financial professionals and analysts
  • Open Source - Review the code, contribute improvements

Available Functions

🔄 Smart Router

  • OCTAGON.OCTAGON_AGENT(prompt) - Intelligent router that automatically selects the best specialized agent for your query

🔍 Research Agents

  • OCTAGON.DEEP_RESEARCH_AGENT(prompt) - Conducts in-depth research on financial topics
  • OCTAGON.SCRAPER_AGENT(prompt) - Extracts data from websites

Usage

⚠️ Getting Started

  • This Add-In is currently undergoing Microsoft's review before being published to AppSource. Soon enough, you'll be able to use it directly from

Examples

=OCTAGON.DEEP_RESEARCH_AGENT("Research the financial impact of Apple privacy changes on digital advertising companies revenue and margins")

=OCTAGON.SCRAPER_AGENT("Extract all data fields from zillow.com/san-francisco-ca/ max_pages:2, country:us")

=OCTAGON.OCTAGON_AGENT("Retrieve year-over-year growth in key income-statement items for AAPL, limited to 5 records and filtered by period FY.")

Caution

Be mindful of potential API usage costs. Changes to dependency cells can cause recalculation, and certain actions in Excel can trigger full recalculation. You may wish to switch the calculation mode in Excel from automatic to manual to control when API calls are made.

Development Setup

Prerequisites

  • Node.js (LTS version recommended)
  • npm
  • Microsoft Excel (desktop version for Windows/Mac or Excel on the web)
  • Visual Studio Code (recommended)

Installation

  1. Clone the repository:

    git clone https://github.com/OctagonAI/octagon-excel-functions.git
    cd <your-directory>
  2. Install dependencies:

    npm install
  3. Start the dev server and sideload the add-in in Excel:

    npm start:dev # this points to the manifest-local.xml (local server)

This command:

  1. Builds the project
  2. Starts a local HTTPS server on port 3000
  3. Opens Excel and sideloads the add-in

Development Workflow

  • Development Build: npm run build:dev
  • Watch Mode: npm run watch
  • Dev Server: npm run dev-server
  • Linting: npm run lint or npm run lint:fix

Local vs Production

This repository contains two manifest files:

  • manifest-local.xml - For local development with localhost URLs
  • manifest.xml - For production deployment with GitHub Pages URLs

Project Structure

octagon-excel-custom-functions/
├── assets/                   # Icon images for the add-in
├── src/                      # Source code
│   ├── api/                  # API integration with Octagon services
│   ├── commands/             # Excel ribbon commands
│   ├── functions/            # Excel custom functions
│   ├── taskpane/             # Task pane UI
│   └── utils/                # Utility functions
├── manifest.xml              # Production manifest
├── manifest-local.xml        # Local development manifest
├── package.json              # Project dependencies and scripts
└── webpack.config.js         # Build configuration

Resources

Support

For support, please reach out to Octagon AI Support.

Changelog

See CHANGELOG.md for release history.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Git repository associated with OctagonAI's Microsoft Excel Add-in

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published