Generate scripts using AI

Generate Task Using AI

You can use AI tools like ChatGPT, Claude, Gemini, and Perplexity to generate task functions for FilesWorkflow. Below are the steps and prompt templates for each AI tool. Users only need to replace the functionality in the prompt template.

1. ChatGPT

Steps:

  1. Open ChatGPT (https://chat.openai.com/).

  2. Enter the prompt template with your specific functionality.

Prompt Template:

Generate a JavaScript function for FilesWorkflow. The function should process files and return the result. The function template is:
export default async function (files, params) {
  const resultFiles = // process files
  return resultFiles;
}
The function should be able to [describe the specific functionality you need]. The code should be directly runnable without needing third-party libraries. If third-party libraries or compilation are required, provide detailed steps.

2. Claude

Steps:

  1. Open Claude (https://www.anthropic.com/claude).

  2. Enter the prompt template with your specific functionality.

Prompt Template:

Generate a JavaScript function for FilesWorkflow. The function should process files and return the result. The function template is:
export default async function (files, params) {
  const resultFiles = // process files
  return resultFiles;
}
The function should be able to [describe the specific functionality you need]. The code should be directly runnable without needing third-party libraries. If third-party libraries or compilation are required, provide detailed steps.

3. Gemini

Steps:

  1. Open Gemini (https://gemini.google.com/).

  2. Enter the prompt template with your specific functionality.

Prompt Template:

Generate a JavaScript function for FilesWorkflow. The function should process files and return the result. The function template is:
export default async function (files, params) {
  const resultFiles = // process files
  return resultFiles;
}
The function should be able to [describe the specific functionality you need]. The code should be directly runnable without needing third-party libraries. If third-party libraries or compilation are required, provide detailed steps.

4. Perplexity

Steps:

  1. Open Perplexity (https://www.perplexity.ai/).

  2. Enter the prompt template with your specific functionality.

Prompt Template:

Generate a JavaScript function for FilesWorkflow. The function should process files and return the result. The function template is:
export default async function (files, params) {
  const resultFiles = // process files
  return resultFiles;
}
The function should be able to [describe the specific functionality you need]. The code should be directly runnable without needing third-party libraries. If third-party libraries or compilation are required, provide detailed steps.

By following these steps and using the provided prompt templates, you can generate task functions for FilesWorkflow using AI tools efficiently.

Last updated