Skip to content

zapthedingbat/ask-glean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ask Glean

AI and automation are all about driving efficiency, but sometimes using these tools can feel a little inefficient. This tool brings the efficiency of automation to AI by automating the process of logging in and asking questions so you can stay focused on the tasks that matter and be more efficient!

Running locally

Run once to automate logging into Glean and asking a question.

  • Log into Glean
  • Grab the cookie named azure-hosted-login-session-store
  • Set this and your email in the environment variables or .env file
  • Run main.js

If you're using a .env file you'll need to require dotenv/config like so.

node -r dotenv/config src/main.js

Running in docker

There's a docker file that can be build and run the automation on a schedule (daily at 9:00 by default)

  • Log into Glean
  • Grab the cookie named azure-hosted-login-session-store
  • Set this and your email in environment variables GLEAN_EMAIL and GLEAN_COOKIE
  • (optionally) Set the GLEAN_CRON environment variable to control the schedule. e.g 0 9 * * *

Build the image:

docker build -t ask-glean .

Run the docker container

docker run -d --name ask-glean -e GLEAN_EMAIL="user.name@example.com" -e GLEAN_COOKIE="AbCXzY123" ask-glean

or with a .env file

docker run -d --name ask-glean --env-file .env ask-glean

About

An automation tool for asking Glean

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors