Giter Club home page Giter Club logo

actbot's Introduction

Simple Federated Learning

ActBot - Interaction Agent

ActBot is a browser-based interaction agent script that helps users perform actions on web pages by simulating clicks and typing based on user requests. The end goal is for it to be used by companies to build chatbots that actually perform tasks for users offered as support bots.

The current version is extremely crude and a one day hack. If you are interested in taking this further, contact me.

A few ideas to improve:

  • chrome extension instead of script
  • allow location.href based navigation and other actions
  • CSP overriding

Features

  • Click on elements based on user-provided selectors
  • Type into input fields with a natural typing delay
  • Handle multi-step tasks until the objective is complete
  • Clean HTML representation of the DOM for better interaction understanding

Getting Started

Prerequisites

  • A web browser
  • An OpenAI API key

Installation

  1. Clone this repository or download the project files.

  2. Add your OpenAI GPT API key in the provided field.

  3. Open any website in your preferred web browser.

  4. Copy/Paste the script into the website's console

Usage

  1. Click on the ActBot button (+) at the bottom-right corner of the page to open the chat interface.

  2. Enter your request in the input field. For example:

    • "Change the theme to xyz"
    • "Create a document and share with with xyz"
  3. ActBot will perform the action and update you on the progress in the chat window.

Configuration

Replace your-openai-api-key with your actual OpenAI API key in the script:

const apiKey = "your-openai-api-key";

Troubleshooting

  • If an action is not performed as expected, check the console logs for debugging information.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests with improvements.

License

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

actbot's People

Contributors

omkaark avatar

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.