Question

javascript text request

  • 6 May 2024
  • 1 reply
  • 15 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(* ") );


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 3
Badge +3

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