The previous article introduced you how to use ChatGPT in personal WeChat, but everyone knows that this operation is risky, so everyone is asked to use the trumpet. Today I will introduce to you how to use ChatGPT in DingTalk. Use bots to tease AI.
Process
- Register a DingTalk developer platform account and create an internal organization;
- Create a robot in the internal organization;
- Register OpenAi account and obtain Api Key;
- Deploy program in server;
- Tease AI in internal group;
Create robot
The first two steps above are mainly to create an internally organized robot. Log in to the DingTalk developer backend https://open-dev.dingtalk.com/?spm=ding_open_doc.document.0.0.7f49263crfKgSY, and select Application Development > Enterprise Internal Development > Robots, click Create Application.
Before this, you need to make sure that your DingTalk account has joined an organization. If not, you can create an organization by yourself. After clicking Create Application, fill in the relevant information
and then configure the callback address of the robot in the development management menu, which is the address and port of the server where the code will be deployed later, as follows As shown in the figure.
In addition to directly using the IP of the server, you can also configure a specific domain name, but this requires a domain name, and you can also configure HTTPS. This is according to everyone If you want to use it yourself, using IP directly is the simplest way at that time.
But configuring a domain name is relatively simple, just apply for a domain name, and then configure an nginx reverse proxy. If HPPTS is needed, just configure a certificate.
Then publish the robot in the version management and release menu. At this time, a debugging group will be automatically created. You can then debug the robot directly in the debugging group. If there are no problems in debugging, you can use it in other internal groups. The robot has been added to .
Register OpenAi
OpenAi Due to some reasons, it is impossible to register an account normally in China, and even the website cannot be accessed normally. The detailed registration process is beyond the scope of this article. .
Here I will show you how to obtain an API key after successful registration. When we register successfully and log in, we can go to the link https://platform.openai.com/account/api-keys. Click Create new Secret key on the page to generate an API key. Copy the API key and store it for later use.
Deployment service
Deployment service is still as simple as before. We still deploy it through docker. Just one line of command. Done, here you can configure the custom port and the API Key obtained above, as well as the corresponding timeout and Session status instructions.
docker run -itd --name chatgpt -p 9999:9999 -e APIKEY=你的 API key -e SESSIONTIMEOUT=60s -e MODEL=text-davinci-003 -e MAX_TOKENS=512 -e TEMPREATURE=0.9 -e SESSION_CLEAR_TOKEN=清空会话 --rm docker.mirrors.sjtug.sjtu.edu.cn/eryajf/chatgpt-dingtalk:latest
After the command is executed successfully, we can see through docker ps that the service is back to normal.
After the service deployment is successful, we can locally test whether a port can be connected through the telnet ip port command. If Escape character is '^]' appears. characters means it is open. If the link cannot be connected, it may be that the server port is not allowed or the firewall is not turned on. You can check it in sequence.
Teasing AI
After setting up the robot, we can have fun teasing it. Ah Fan did the following teasing, and the effect was still great.
Recently there are some articles on the Internet saying that this AI has passed Google’s interview and is said to be able to replace engineers. A fan is not too worried about this. , at least not in the short term. Although passing the interview does not mean that you can do a good job. The part of catching up with engineers is only based on some theories and eight-part essays.
Through teasing with AI, we can find that every time he answers a question, he will bring the context with him for training. This is why he can understand the context better than other robots.
So the answer to this model is often not the most critical. The most critical thing is how to ask a good question and continue to follow this question. Reflected in daily life, it is like two people having a conversation, rather than a simple question and answer, which has no connection.
If the context is filled with irrelevant content, it will add a lot of junk content to the AI, making subsequent answers even more meaningless and often looking incorrect.
Thinking
With the emergence of such powerful AI, how can we programmers avoid being eliminated? Let's use magic to defeat magic. I have to say that the advice given by AI is still very pertinent.
Afen: What do you think of the emergence of ChatGPT? Will it have an impact on the programmer industry? At the same time, how should we as programmers avoid being eliminated by AI?
AI: The emergence of ChatGPT can help programmers develop programs more efficiently, but it will also bring challenges to programmers, because many repetitive coding tasks may be replaced by ChatGPT.
To avoid being eliminated by AI, programmers need to pay more attention to the depth of technology, constantly learn new technologies and methods, achieve value-driven software development, and cooperate with AI to achieve more efficient development.
In addition, programmers can also consider expanding their skills, such as learning a new programming language, understanding new software development tools, etc., in order to maximize and rationally use AI to improve their abilities and Competitiveness.
The above is the detailed content of It took another half an hour to connect ChatGPT to DingTalk robot.. For more information, please follow other related articles on the PHP Chinese website!

自从 ChatGPT、Stable Diffusion 发布以来,各种相关开源项目百花齐放,着实让人应接不暇。今天,着重挑选几个优质的开源项目分享给大家,对我们的日常工作、学习生活,都会有很大的帮助。

Word文档拆分后的子文档字体格式变了的解决办法:1、在大纲模式拆分文档前,先选中正文内容创建一个新的样式,给样式取一个与众不同的名字;2、选中第二段正文内容,通过选择相似文本的功能将剩余正文内容全部设置为新建样式格式;3、进入大纲模式进行文档拆分,操作完成后打开子文档,正文字体格式就是拆分前新建的样式内容。

用 ChatGPT 辅助写论文这件事,越来越靠谱了。 ChatGPT 发布以来,各个领域的从业者都在探索 ChatGPT 的应用前景,挖掘它的潜力。其中,学术文本的理解与编辑是一种极具挑战性的应用场景,因为学术文本需要较高的专业性、严谨性等,有时还需要处理公式、代码、图谱等特殊的内容格式。现在,一个名为「ChatGPT 学术优化(chatgpt_academic)」的新项目在 GitHub 上爆火,上线几天就在 GitHub 上狂揽上万 Star。项目地址:https://github.com/

阅读论文可以说是我们的日常工作之一,论文的数量太多,我们如何快速阅读归纳呢?自从ChatGPT出现以后,有很多阅读论文的服务可以使用。其实使用ChatGPT API非常简单,我们只用30行python代码就可以在本地搭建一个自己的应用。 阅读论文可以说是我们的日常工作之一,论文的数量太多,我们如何快速阅读归纳呢?自从ChatGPT出现以后,有很多阅读论文的服务可以使用。其实使用ChatGPT API非常简单,我们只用30行python代码就可以在本地搭建一个自己的应用。使用 Python 和 C

面对一夜爆火的 ChatGPT ,我最终也没抵得住诱惑,决定体验一下,不过这玩意要注册需要外国手机号以及科学上网,将许多人拦在门外,本篇博客将体验当下爆火的 ChatGPT 以及无需注册和科学上网,拿来即用的 ChatGPT 使用攻略,快来试试吧!

ChatGPT可以联网后,OpenAI还火速介绍了一款代码生成器,在这个插件的加持下,ChatGPT甚至可以自己生成机器学习模型了。 上周五,OpenAI刚刚宣布了惊爆的消息,ChatGPT可以联网,接入第三方插件了!而除了第三方插件,OpenAI也介绍了一款自家的插件「代码解释器」,并给出了几个特别的用例:解决定量和定性的数学问题;进行数据分析和可视化;快速转换文件格式。此外,Greg Brockman演示了ChatGPT还可以对上传视频文件进行处理。而一位叫Andrew Mayne的畅销作

本篇文章给大家带来了关于php的相关知识,其中主要介绍了我是怎么用ChatGPT学习PHP中AOP的实现,感兴趣的朋友下面一起来看一下吧,希望对大家有帮助。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Atom editor mac version download
The most popular open source editor

Dreamweaver Mac version
Visual web development tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function