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:
Open ChatGPT (https://chat.openai.com/).
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:
Open Claude (https://www.anthropic.com/claude).
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:
Open Gemini (https://gemini.google.com/).
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:
Open Perplexity (https://www.perplexity.ai/).
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.