We’re using a pickaxe bot on our site via JS embed. We would like to use a js variable from the page in an action without having to prompt the user to type it (auth token). Is there anyway to either access the page’s JS context, or pass in some variable when we initialize the pickaxe?
The goal is to make the pickaxe feel like an actual part of the website, with access to the user’s constructs and other data rather than feeling like a separate system pasted on top.
This is a cool idea. We might be able to help you. Can you explain in more detail why you want to do this?
Awesome. So we’ve got a login-only control panel and we’ve got a pickaxe built based on our knowledge base. Users use it to advise them on how to accomplish certain tasks using that UX. The pickaxe tells them where to go, and if asked writes code or regex to help build the experimentation campaign. We’d like it to also answer things about the individual users config or the success of their tests etc, all of which is accessible via API end points. Potentially, we might even be able to ask for some sort of limited graphing. Basically, a variety of read scenarios.
We can have user information available when we first load the pickaxe, including name, email, and potentially an API access token. With this, the pickaxe could address the user by name, send the transcript to their email, and use our API to answer questions about their configs and results, all without asking their info (which wouldn’t work in the case of the API token). The name and email may seem like little things, may seem like little things, but it’s jarring when you’ve logged into a system, who knows who you are and then you’re asked for your name by what appears to be part of that system.
Looking forward to hearing your thoughts.