Proje ve Dialogflow aracısı oluşturma (Dialogflow)
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Dialogflow ile geliştirme yapmak için önce bir Actions projesi ve Dialogflow (Dialogflow aracısı) oluşturmanız gerekir. Projenizin olması İşleminizi yönetmek ve dağıtmak için
geliştirici konsoluna erişmenize olanak tanır. Dialogflow aracısı, İşleminizi tanımlayan tüm
niyetleri içerir.
Projeniz için bir ad girin ve Proje Oluştur'u tıklayın.
Diğer seçenekler bölümüne ilerleyin ve Görüşme kartını tıklayın.
Üst menüde Geliştir'i, ardından soldaki menüden İşlemler'i tıklayın.
İlk İşleminizi Ekleyin'i tıklayın.
Özel amaç kartında Oluştur'u tıklayın.
Dialogflow konsolu görüntülenir ve bilgiler bir aracıda otomatik olarak doldurulur. Temsilciyi kaydetmek için Create'i (Oluştur) tıklayın.
Dialogflow konsolu
Dialogflow konsolunu ve sol tarafta menü panelini görüyor olmanız gerekir. Küçük bir
ekrandaysanız ve menü gizliyse sol üst
köşedeki menu simgesini tıklayın.
Orta pencerede, aracı için amaçların listesi gösterilir. İletişim akışı aracıları varsayılan olarak iki amaçla başlar. Varsayılan Karşılama Niyeti kullanıcılarınızı karşılar. Temsilciniz kullanıcıların ne dediğini anlamadığında Varsayılan Fallback Intent ile eşleşir.
Dialogflow simülatörü sayfanın sağ tarafındadır. Simülatör, mesajları söyleyerek veya yazarak aracınızı denemenize olanak tanır. Dialogflow simülatöründe Şimdi deneyin'i tıklayın, bir şey yazın ve Enter tuşuna basın.
Şekil 1. Bir temsilcinin gösterildiği Dialogflow konsolunun ekran görüntüsü.
İlk niyetinizi oluşturun
Dialogflow, kullanıcıların amaçlarını kategorilere ayırmak için intent'leri kullanır. Amaçlarda Eğitim İfadeleri bulunur. Bunlar, bir kullanıcının temsilcinize ne söyleyebileceğine dair örneklerdir.
Örneğin, temsilcinizin adını öğrenmek isteyen bir kullanıcı "Adınız ne?" veya "Bir adın var mı?" veya sadece "ad" demen yeterli. Bu ifadelerin nihai amacı aynıdır: aracınızın adını öğrenmek.
Bu destek kaydıyla ilgilenecek bir aracı oluşturmak için aşağıdaki adımları uygulayın:
Gezinme menüsünde Niyetler'in yanında bulunan add simgesini tıklayın.
Niyet adı metin alanına Name girin.
Eğitim İfadeleri bölümünde Eğitim İfadeleri Ekle seçeneğini tıklayın.
Aşağıdaki ifadeleri girin (her kelime öbeğinden sonra Enter tuşuna basın):
What is your name?
Do you have a name?
name
Yanıtlar bölümünde Yanıt Ekle'yi tıklayın.
Metin Yanıtı penceresine aşağıdaki yanıtı girin:
My name is Dialogflow!
Kaydet'i tıklayın.
Deneyin
Yeni Ad amacınızı test etmek için Dialogflow simülasyon aracında "Adınız nedir?" yazın ve Enter tuşuna basın.
Eğitim ifadeleriyle tam olarak aynı olmayan (örneğin, "Adınız ne?" ve "Adınız ne?" gibi sorular) sorduğunuzda bile temsilciniz sorunuza doğru yanıt verebilir.
Dialogflow, makine öğrenimi modelini eğitmek için eğitim ifadelerini kullanır. Bu da aracının, kullanıcı ifadelerini doğru niyetlerle eşleştirmesine yardımcı olur.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\u003cp\u003eTo begin developing with Dialogflow, you need to set up an Actions project and a Dialogflow agent using the Actions console.\u003c/p\u003e\n"],["\u003cp\u003eDialogflow utilizes intents, containing training phrases and responses, to understand and respond to user requests.\u003c/p\u003e\n"],["\u003cp\u003eYou can test your Dialogflow agent using the built-in simulator by typing or speaking messages.\u003c/p\u003e\n"],["\u003cp\u003eDialogflow employs machine learning to match user input to the appropriate intents, even if the phrasing differs slightly from training phrases.\u003c/p\u003e\n"]]],[],null,["# Create a project and Dialogflow agent (Dialogflow)\n\nTo develop with Dialogflow, you first need to create an Actions project and a\nDialogflow agent. Having a project allows you to access the developer console to\nmanage and distribute your Action. The Dialogflow agent contains all the intents\nthat define your Action.\n| **Note:** When creating a new project, Actions on Google enables [Firebase](//firebase.google.com/), Google's developer platform that provides a number of services for app developers. Relative terms of service information can be found in the [Actions on Google Terms Explanation](/assistant/console/policies/terms-explanation).\n\nCreate an Actions project and Dialogflow agent\n----------------------------------------------\n\n1. Go to the [Actions console](//console.actions.google.com/).\n2. Click **New project**.\n3. Enter a name for your project and click **Create Project** .\n4. Scroll down to the **More options** section and click on the **Conversational** card.\n5. Click **Develop** in the top menu, then click **Actions** in the left menu.\n6. Click **Add Your First Action**.\n7. On the **Custom intent** card, click **Build**.\n8. The Dialogflow console appears with the information automatically populated in an agent. Click **Create** to save the agent.\n\nThe Dialogflow console\n----------------------\n\nYou should now see the Dialogflow console and the menu panel on the left. If\nyou're on a small screen and the menu is hidden, click\n*menu* in the upper left corner.\n\nThe center window shows the list of intents for the agent. By default,\nDialogflow agents start with two intents. The *Default Welcome Intent* greets\nyour users. Your agent matches the *Default Fallback Intent* when it doesn't\nunderstand what the users say.\n\nThe Dialogflow simulator is on the right side of the page. The simulator lets\nyou try out your agent by speaking or typing messages. In the Dialogflow\nsimulator, click **Try it now**, type anything, and press enter.\n\n**Figure 1**. A screenshot of the Dialogflow console showing an agent.\n\nCreate your first intent\n------------------------\n\nDialogflow uses intents to categorize a user's intentions. Intents have\n*Training Phrases*, which are examples of what a user might say to your agent.\nFor instance, a user who wants to know your agent's name might ask, \"What is\nyour name?\", \"Do you have a name?\", or simply say \"name\". These phrases have the\nsame end goal: to get the name of your agent.\n\nTo create an agent that handles this case, follow these steps:\n\n1. Click *add* next to **Intents** in the navigation menu.\n2. Enter `Name` in the **Intent name** text field.\n3. In the **Training Phrases** section, click **Add Training Phrases**.\n4. Enter the following phrases (press enter after each phrase):\n - `What is your name?`\n - `Do you have a name?`\n - `name`\n5. In the **Responses** section, click **Add Response**.\n6. Enter the following response in the **Text Response** window:\n - `My name is Dialogflow!`\n7. Click **Save**.\n\nTry it out\n----------\n\nTo test your new *Name* intent, in the Dialogflow simulator, type \"What's\nyour name?\" and press enter.\n\nYour agent can respond to your question correctly even when you ask questions\nthat aren't exactly the same as the training phrases (for example, \"What's your\nname?\" versus \"What is your name?\").\n\nDialogflow uses training phrases to train a machine learning model, which helps\nthe agent match user utterances to the correct intents."]]