Quickstart
Let’s create an eko workflow together in a browser extension to automate the task that Search Sam Altman's information and summarize it into markdown format for export
.
With this plugin, you no longer need to manually open multiple web pages; instead, you can run everything with a single click.
Prerequisites
-
Install
npm
: Make sure you have Node.js installed. You will also need eithernpm
orpnpm
for managing dependencies. If you haven’t installedpnpm
yet, follow these steps: -
Install
pnpm
Note: If you prefer using
npm
for the setup, you can skip the pnpm installation and use npm commands instead. However, pnpm is faster and more efficient with handling dependencies.
Install Eko
Let’s start by creating a new project and installing Eko:
Creat your first workflow
Write your workflow in the src/background/first_workflow.ts
file:
Paste the following content. Press :wq
to exit.
Click here to view the sample demo code, or directly download the extension to experience the workflow.
- Build: Build the project into browser-loadable extension code:
Load extension
- Open the Chrome browser and navigate to
chrome://extensions/
. - Turn on
Developer mode
(toggle switch in the top right corner). - Click
Load unpacked
button (the blue text in the top-left corner) and select thedist
folder of the project (e.g.,[root_directory]/Eko/browser-extension-demo/dist
).
Configure LLM model API Key
- Click the
Details
button on theeko agent
card. - Scroll down to find the
Extension options
section. - Open it and enter your LLM model API Key.
Let’s run it!
Pin the current extension in the browser’s top-right extensions menu, click the extension to open the popup, and click the RUN button to execute. Run your workflow by clicking the RUN button in the extension popup.
Next Steps
Now that you have run the first workflow, you can:
- Understand the Installation of Eko in different environments
- Learn about Eko’s Configuration in different environments
- Learn more core concepts of eko: Dive deep into Eko