Skip to main content

Goh Analyst - The AI-powered financial analyst who lives on Slack

· 4 min read

How I built a financial analyst that lives on Slack and has access to OpenBB.

The open source code is available here.

Context

At OpenBB, we have the tradition of hosting an internal Creaton on the penultimate week of the year.

The OpenBB Creaton is our creative Hackathon, where every team member picks a project to work on throughout the week and gets fully focused on it. The only rule is that it relies on OpenBB technology.

It’s a way for us to get further contact with our technology, but it also allows us to create proofs-of-concept of products/features that we may invest in the feature. Think of it as an R&D week.

We do it then because our team members get the last week of the year as time off. So, if they want to present their project to the rest of the team in January, they can also use that time to wrap up.

My Project

At the Open Core Summit III, I presented a way of creating an AI-powered financial analyst capable of handling complex financial queries.

I wrote more about this in this blog post. This robust architecture can access 100+ financial datasets from OpenBB tools and reason about them. The code is open source here.

I shared how our AI-powered financial analyst was able to answer

“Check what TSLA peers are. From those, check which one has the highest market cap. Then, for the ticker that has the highest market cap, get the most recent price target estimate from an analyst, and tell me who it was and on what date the estimate was made.”


and

“Perform a fundamentals financial analysis of AMZN using the most recently available data. What do you find that’s interesting?”


Since that was already working so well (watch the presentation video here), I wanted to bring these capabilities to Slack, show that this could be the future, and prove it would impact every analyst job.

That’s when Goh Analyst was born.

Note: Goh Analyst together is GOHANalyst, which is why the image is Gohan from Dragon Ball with the OpenBB logo on his forehead.

How does it work?

To get started, you can see the open-source repository and instructions.

First, I forked the open-source code of the OpenBB agents repository that we have been using for R&D. This repository contains all the code for the OpenBB agent and has access to 100+ financial datasets.

Then, I modified it to my needs:

Created the Slack bot interface

When a Slack message mentions @Gohanalyst this workflow gets triggered

When the Slack message contains the word “OpenBB”, I send that message through the OpenBB agent since the assumption is that data retrieval will be necessary. Otherwise, it goes straight through OpenAI.

In a nutshell, this is what the architecture looks like:

I made Goh Analyst slightly sarcastic to make it a bit more fun. This makes interacting in a public channel somewhat more human and exciting. It can handle simple financial questions, retrieve data using OpenBB tools, or even answer more complex reasoning questions.

Now imagine that every organization has an analyst on their Slack to help make decisions.

What's next

As I mentioned earlier, one of the advantages we get from OpenBB Creaton is that we test our products and give feedback to the team on what went well or less well. After working on this project, this is what I shared with the team:

Exciting times we live in. If you want to leverage AI within your financial firm, we can help you 🤝