ChatGPTとDifyの連携イメージ
How to Integrate Applications

2025-04-24

[Easy Setup] How to Automatically Connect ChatGPT Data to Dify

h.hamada

Generative AI is very convenient, but if you are using multiple generative AIs, you might find it a bit cumbersome to differentiate prompts and switch between tools, don't you think?
That said, proceeding with all tasks without relying on generative AI is even more cumbersome, isn't it?

The solution to this problem is automation of tasks through data integration between ChatGPT and Dify!
By utilizing the API, you can automatically use both ChatGPT and Dify tools with a single action!

In this article, we will specifically introduce the method of integrating ChatGPT and Dify, as well as the automation flow that can be achieved through integration.
If you are considering improving work efficiency, please check it out!

For those who want to try it as soon as possible‍

By using Yoom, you can easily integrate ChatGPT and Dify without any coding. Yoom provides templates for integrating ChatGPT and Dify in advance, so you can achieve integration immediately just by registering, even without API knowledge.

What You Can Do by Integrating ChatGPT and Dify

By integrating the APIs of ChatGPT and Dify, you can automatically transfer ChatGPT data to Dify! For example, you can automatically perform data transfers like the ones below without any manual intervention.

Simply click "Try it out" on the automation example you're interested in and register an account to immediately experience the integration of ChatGPT and Dify.
Registration takes just 30 seconds, so feel free to give it a try!

Summarize Emails with ChatGPT and Create Responses with Dify

When an email arrives, ChatGPT automatically summarizes the content, and based on that, Dify can create an appropriate response, enabling quick email handling. This flow is recommended for those who process a large number of emails daily and find it time-consuming to respond.

Summarize Emails with ChatGPT and Translate with Dify

It is possible to automate the summarization and translation of emails. This flow is recommended for teams that require communication in multiple languages or for those handling international operations.

Translate Emails with ChatGPT and Create Response Drafts with Dify

This flow is recommended for those who feel challenged by multilingual email correspondence or want to automate the translation and response drafting to improve work efficiency, as translations and response drafts are automatically created immediately after receiving an email.

Let's Create a Flow Integrating ChatGPT and Dify

Let's get started by creating a flow that integrates ChatGPT and Dify!
We'll use Yoom to proceed with the integration of ChatGPT and Dify without any coding, so if you don't have a Yoom account yet, please create one using this registration form.

[What is Yoom]

This time, we will create a flow bot that summarizes emails with ChatGPT and generates responses with Dify!
The creation process is broadly divided into the following steps.

  • Integrate ChatGPT and Dify with My Apps
  • Copy the template
  • Set the trigger for ChatGPT and the action for Dify
  • Set the trigger to ON and complete the preparation for flow operation

Step 1: My App Integration

Here, we will integrate Yoom with each app to enable operations.
First, log in to Yoom, press My Apps on the left menu, and then press the "+ Add" button on the right.

ChatGPT Integration
1. Search
Enter ChatGPT in the search box and click the ChatGPT icon.

2. Log in
Enter "Account Name" and "Access Token," then click "Add."
For detailed instructions on registering ChatGPT as a My App, please refer to here.

Return to the Yoom screen, and if the following display appears, the integration is complete!

Dify Integration

1. Search
Enter Dify in the search box and click the Dify icon.

2. Log in
Enter Dify's information in the fields below.

  • Account Name: Please enter an easily manageable name.
  • Access Token: The method to check the access token is as follows.
    • Access Dify and select the chatbot you want to integrate with Yoom.
    • Select "API Access" as shown in the image below, then click "API Key" in the top right.

  • A popup called API Secret Key will appear, press "+ Create New Secret Key" and copy the generated API Secret Key.

  • Return to the Yoom screen, paste the copied API Secret Key into the Access Token field, and click "Add."
    For more details, please refer to the help page.

Return to the Yoom screen, and if the following display appears, the integration is complete!

Step 2: Template Copy

Next, please copy the template to be used from below.

1. Click "Try it"
2. If you haven't registered with Yoom yet, please register
※ If you have already registered, the login screen will be displayed, so please enter your login information.
3. The template will be copied to your Yoom management screen as shown below, so press OK to proceed with the settings.

Step 3: Email Trigger Settings

1. Select "When the email in the red frame is received"

2. Set the conditions for the email trigger
Create an email address to receive the trigger email.
This time, we set it with an email address like the one below.
Additionally, by pressing "Add Trigger Condition," you can set conditions to your liking. Please set it according to your preference.

For more details, please check here.

Once the input is complete, press "Next" to proceed to the next email test operation.

3. Test the Email Trigger
Send a test email to the email address you set earlier.
This time, we sent a test email with the following question content.

After sending the email, return to the Yoom screen and click "Test."
If the test is successful, the output below will be displayed.
Confirm that the content of the test-sent email is reflected and press "Save."

For more details on the output, please check here.
For more details on how to add an output, please check here.

Step 4: Setting Up Text Generation with ChatGPT

1. Select "Generate Text"
Click the "Generate Text" icon for ChatGPT.
The screen will transition, and the content you entered in Step 1 will be reflected. If no corrections are needed for the title, click "Next" as is.

2. API Connection Settings
Enter each item for API connection.
When you click the input field as shown in the image below, a menu will be displayed, and you can quote by clicking the item.

  • Message Content: Set the text to be sent to ChatGPT. You can send prompts tailored to each content by referring to the input example.
  • Role: It establishes the context for the request sent to ChatGPT, and if no changes are necessary, it can remain as is.
  • Temperature: Can be set in the range of 0 to 2. The higher the value, the more diverse the generation can be expected, and the lower the value, the more consistent the response will be. If you have no particular preference, it can remain as is.
  • Max Token Count: You can specify the maximum number of characters for the summary.
  • Model: Specify the ChatGPT model to use. By default, "gpt-4o" is used. If you have no particular preference, it can remain as is.

After completing the settings, please execute "Test."

※ To run actions using ChatGPT (OpenAI), you need to subscribe to OpenAI's API paid plan. Make sure to prepare your contract details so that you can smoothly make payments when API usage fees occur. For more details, please see here.

If the test is successful, the output will be displayed.
If it reflects the response from ChatGPT, then it's OK. Finally, click "Save".

Step 5: Setting Up to Send Chat Messages with Dify

1. Select "Send Chat Message"
Click the "Send Chat Message" icon for Dify.
The screen will transition, and the content you entered in Step 1 will be reflected. If no corrections are needed for the title, click "Next" as is.

2. API Connection Settings
Set the content to be sent to Dify's chatbot with the text generated by ChatGPT.

  • Query: When you click the input field, the output will be displayed as shown below. This time, we set it to create a response to ChatGPT's response content as shown below.

  • User: Please enter a manageable name in alphanumeric characters.
  • Variables: You can set dynamic values to use when connecting to the API. For example, it is useful when you want to include information that changes every time, such as username or date, in the message. If you have no particular preference, it can remain as is.

Once you have completed the settings, run "Test".
If the test is successful, the output will be displayed.
If the response from Dify is reflected, it's OK. Finally, click "Save".

Step 6: Setting Up to Send Response Content by Email

1. Select "Send Email"

2. Email Settings
Set the content of the email to reply.

  • TO: When you click the input field, the output will be displayed as shown below. This time, since we want to reply to the email address that received the inquiry, we set it as shown below.

  • CC: Enter the email address of the person you want to send the email to other than the recipient in the "To" field. If you have no particular preference, it can remain as is.
  • BCC: Recipients entered in BCC can receive the email, but their address will not be displayed to other recipients. It is mainly used for privacy protection or when sending to a large number of people at once. If you have no particular preference, it can remain as is.
  • Sender's Name: Enter the "Sender's Name" that will be displayed when sending the email here. If not set, the workspace name will be automatically displayed as the sender, so if you have no particular preference, it can remain as is.
  • Subject: Set the subject of the email. This time, we entered "Regarding the Inquiry Response."
  • Body: When you click the input field, the output will be displayed as shown in the image below. Set the response content from Dify as the body.

After completing the settings, please press "Next."

3. Test Email Sending
The email content you set earlier will be displayed, so please check if there are any errors in the content.

If there are no issues with the content, please execute "Test."
If the test is successful, the output below will be displayed.
The email should have been delivered to the email address set in "To," so let's check it.


If you receive an email to the email address you set, it's OK.
Finally, return to the Yoom screen and click "Save."

Step 7: Turn ON the Trigger and Check Operation

Since the settings are complete, "Turn on the trigger" and check the operation.

If You Want to Link Dify Data to ChatGPT

This time, we introduced how to link data from ChatGPT to Dify, but if you want to link data from Dify to ChatGPT, please also use the template below.

Create a Reply with Dify When an Email is Received and Summarize with ChatGPT

It is possible to automatically generate a reply to the received email and summarize its content with ChatGPT. This flow is recommended for those who process a large number of emails daily and are spending a lot of time on responses.

Create a Reply Draft with Dify upon Receiving an Email and Generate Revisions with ChatGPT

By automatically generating a first draft with Dify and refining it with ChatGPT, you can expect to reduce the time spent on manual writing. This flow is recommended for those who handle a large volume of emails daily and find themselves spending a lot of time on replying.

Other Automation Examples Using the API of ChatGPT and Dify

By leveraging the API of ChatGPT and Dify, various automations can be achieved!
How about the following automations, for example?

Automation Examples Using ChatGPT

In addition to summarization and translation, it is possible to automatically draft content and create outlines!

Automation Example Using Dify

In addition to automatic responses, it is also possible to send an approval email after generating the response content!

In Conclusion

By integrating the two generative AIs, ChatGPT and Dify, you can swiftly complete tasks utilizing both tools in a single action!
Not only does this save the hassle of switching between the two tools, but it also allows for smooth completion of AI-assisted tasks, potentially improving work efficiency. This could also reduce the workload, allowing you to experience various benefits!

Moreover, the key point of this integration is that it can be achieved without programming knowledge! With Yoom, such app integration becomes easily possible.

It's easy to implement even for beginners in app integration, so register with Yoom now and start implementing automation!

The person who wrote this article
h.hamada
I had about 8 years of sales and office work experience at an insurance agency. While dealing with customers, we have been organizing the operations of each branch office and working to improve efficiency and leveling them. While carrying out the main business, we will use tools determined by the company to disseminate various contents so that it can contribute to improving the work efficiency of everyone who is inputted and managed.
Tags
ChatGPT
Dify
Automatic
Automation
Integration
Related Apps
App integration
No items found.
What is Yoom hyperautomation?
Conventional RPA can only automate simple repetitive tasks, and the setup process was very complicated.
With “hyperautomation,” which combines various technologies such as AI, API, RPA, and OCR, it is possible to automate many tasks that could not be realized until now more easily than before.
Don't Just Connect Apps—Automate Everything
Most tools simply connect one app to another, leaving the complex tasks to you. Yoom goes much further: From document creation and browser automation to OCR and generative AI, Yoom handles it all seamlessly in one platform.

Why settle for basic integrations? Streamline your entire workflow with Yoom’s powerful hyperautomation.
Learn more about Yoom
Helpful Materials
I understand Yoom! 3-piece set of materials
Download materials
Understand in 3 minutes! Yoom service introduction materials
Download materials
Find out by Before After! Yoom Case Study Collection
Download materials
See a list of useful materials