Creation at: 2024-11-27 | Last modified at: 2024-12-31 | 3 min read
Dify AI is a powerful AI workflow platform that allows you to quickly and easily integrate various tools and services, automating repetitive tasks. Whether it’s data analysis, content generation, or customer service, Dify AI can help you improve work efficiency. With an intuitive interface and drag-and-drop operations, you can easily create your own smart workflows.
Dify AI provides an intuitive workflow design interface, combined with API integration capabilities, allowing you to quickly integrate complex operational processes into LINE chatbots, meeting various application scenarios.

First, go to Dify to register an account and choose the built-in SEO Blog Generator. This step is optional; you can create your own.

Before publishing the workflow, make sure all nodes are fully set up.

Start Node Setup
End Node Setup

After clicking publish, you can immediately run the workflow to test the output content.

Go to Workflow App API to generate an API key for integration.

Example settings:
https://api.dify.ai/v1/workflows/runAuthorization: Bearer {API_KEY}{
"inputs": {
"keyword": "SEO marketing",
"title": "SEO Marketing Strategy Guide for Beginners",
"audience": "Startup owners",
"brands_to_avoid": "Google, Bing",
"tone": "Professional but easy to understand"
},
"response_mode": "blocking",
"user": "{unique_user_id}"
}
Response (focus on the output parameter within outputs),
{
"workflow_run_id": "djflajgkldjgd",
"task_id": "9da23599-e713-473b-982c-4328d4f5c78a",
"data": {
"id": "fdlsjfjejkghjda",
"workflow_id": "fldjaslkfjlsda",
"status": "succeeded",
"outputs": {
"output": "{output}"
},
"error": null,
"elapsed_time": 0.875,
"total_tokens": 3562,
"total_steps": 8,
"created_at": 1705407629,
"finished_at": 1727807631
}
}
In the dmflow.chat platform, set up resource nodes and corresponding variables to achieve seamless integration with LINE chatbots.
Add the following seven key variables:
Refer to the image on the right for resource setup.


Select the input variables created above:
And add the output variable:


Set up the background resource node and update the form.

First, set up the new page to adjust, making sure to remove the output field and add the button’s trigger ID.

Finally, generate articles in three steps:
