ChatGPT-Question-Automation

Read a file and input its contents into an input field

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ئاپتورى
14790897
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
43
باھا نومۇرى
0 0 0
نەشرى
0.15
قۇرۇلغان ۋاقتى
2023-06-09
يېڭىلانغان ۋاقتى
2023-06-11
Size
11.4 KB
ئىجازەتنامىسى
MIT
قوللايدىغىنى

如何使用Tampermonkey脚本自动化和ChatGPT进行交互

本指南将介绍如何使用提供的Tampermonkey脚本自动从一个JSON文件中读取问题,并将这些问题自动输入到OpenAI的ChatGPT页面,以便您可以实现自动化问题处理。

前提条件

  1. 安装Tampermonkey插件。Tampermonkey可以在ChromeFirefox的插件市场免费下载。
  2. 创建一个名为File Reader的新用户脚本,并将上述代码复制粘贴到新的用户脚本中。

使用说明

1. 导入JSON文件

首先,点击页面右上角的浮动面板中的文件输入框,选择你的JSON文件。该文件的格式应为一个包含问题的数组,每个问题为一个JSON对象,其中包含一个名为title的键,其值为要提交的问题。例如:

[
  {"title": "What is AI?"},
  {"title": "Who invented the internet?"},
  ...
]

2. 设定通用提示(可选)

在面板的下一个输入框中,您可以设置一个通用提示。这个提示将被添加到每个问题的前面,作为输入发送到ChatGPT。例如,如果您设置通用提示为"Please tell me ",并且您的问题是"Who invented the internet?",那么发送到ChatGPT的最终输入将会是"Please tell me who invented the internet?"。

3. 设置间隔时间(可选)

在下一个输入框中,您可以设定每个问题之间的间隔时间,单位为秒。这个时间是每个问题发送后,脚本等待的时间。

4. 设置休息选项(可选)

在面板上,您可以看到一个复选框,标签为"sleep after every 25 sends"。如果您勾选了这个选项,那么每发送25个问题后,脚本将暂停3小时再继续发送问题。

5. 开始发送问题

在设置完毕后,点击"确认"按钮,脚本将开始自动从您的JSON文件中读取问题,并按照您设定的选项将问题逐个发送到ChatGPT。

6. 查看进度

在面板的下方,有一个进度条显示当前发送的问题数量和总问题数量。您可以通过这个进度条来查看任务的进度。

注意事项

  • 在重新加载或关闭页面前,请确保所有的问题已经发送完成,否则未发送的问题将丢失。
  • 请确保在开始发送问题前,已经正确地选择了JSON文件并设置了所有选项。

现在,你应该已经知道如何使用这个脚本来自动化和ChatGPT的交互了。如果你有任何问题或遇到任何困难,欢迎随时提问。

Github

GitHub