My zap is (txt) google docs > java (to read file) > input to openai custom gpt > google spreads
i am having trouble with my code. It is below, all help is appreciated.
(ps I have no experience with Java)
const response = await fetch(inputDatat"text"]);
const text - avait response.text();
const words = text.split(* *);
output - { result: words-slice(l, 10000)-join(* ") );