Public
HTTP (deprecated)
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Readme

An example of using Breadboard Board as a Service helper script. The board is a single turn of a chat bot: takes the conversation context and returns updated conversation context.

To use:

  • fork this val
  • set the URL of the board to be served
  • add "GEMINI_KEY" to your environment variables
  • query directly or use as Service URL in the Core Kit service node.
1
2
3
4
5
import { service } from "https://esm.town/v/dglazkov/bbaas";
export default service(
"https://breadboard.live/boards/@dimitri/greeter-.bgl.json",
);
dglazkov-chatbot.web.val.run
July 7, 2024