Creating your first workflow
The goal of this example is to create a flow with a PDF file and a question as inputs, and to generate the answer to the question as the output. In our case, we are going to use a document that discusses COVID-19 and ask the AI to answer questions related to the document.
Use this guide to create a simple Workflow that summarizes a YouTube video.
In this example, the user pastes a YouTube link, and Diaflow returns a summary.
Create the Workflow
Click New.
Choose New flow.
Choose Continue.
Select how the Workflow should start.

Choose the start type that matches your use case:
The 3 options on top (On app event, Schedule, Webhook) create an Automation Workflow.
The 2 options on the bottom left (Click a button, Submit a form) create an App Workflow.
Select Chat to create a Chatbot Workflow (Simple or Expert).

For this example, choose Submit a form.
Build the Workflow
In Trigger, click Add.
Choose
Short Text.Name the field
YouTube URL.

Click or drag from the green dot on the right side of Trigger.
Search for YouTube.
Select it as the next step.
In the URL field, type @ to show the node list and select
trigger.youtube_url.Set Detect Language to
Auto Generate.

The Pop-up will display the search keyword "YouTube."
Add an AI node such as OpenAI.
Choose the connection and model you want to use.
In the prompt, ask the AI to summarize the video.
Insert the result from the YouTube node.
Use a simple prompt like this:

Finally, add an Output node at the end of the flow.
In Output, click Add.
Select the result from the AI node.
If needed, also add the result from the YouTube node.

Run the Workflow
Paste a YouTube URL into the Trigger Field.
Click Execute.
Review the summary.

Publish the Workflow
Click Publish.
Choose how you want to share the Workflow.
You can publish it as:
Internal Apps
Public Apps
Run via API

Need help?
Learn the basics in How a Component works.
See the full structure in How a Workflow works.
Last updated