Question

javascript text request

  • 6 May 2024
  • 1 reply
  • 14 views

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(inputData["text"]);

const text - avait response.text();

const words = text.split(* *);

output - { result: words-slice([, 10000)-join(* ") );


1 reply

Userlevel 3
Badge +1

@Auxo Can you show the screenshots of your flow or explain more what you are trying to achieve with the text file?

Reply