<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Aura – </title>
    <link>/docs/components/aura-bot-platform/aura-bot-components/internal-dialogs/</link>
    <description>Recent content on Aura</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="/docs/components/aura-bot-platform/aura-bot-components/internal-dialogs/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Docs: </title>
      <link>/docs/components/aura-bot-platform/aura-bot-components/internal-dialogs/main-dialog/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/components/aura-bot-platform/aura-bot-components/internal-dialogs/main-dialog/</guid>
      <description>
        
        
        &lt;h1 id=&#34;aura-bot-main-dialog&#34;&gt;Aura Bot main dialog&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Description of the &lt;em&gt;&lt;strong&gt;main&lt;/strong&gt;&lt;/em&gt; dialog, one Aura Bot core dialog that maps the recognized intent with a specific dialog&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The &lt;em&gt;&lt;strong&gt;main&lt;/strong&gt;&lt;/em&gt; dialog is one of the &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt; core dialogs in charge of routing from the recognized intention of the user to the specific dialog that provides the functionality required in an intended channel.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;main&lt;/strong&gt;&lt;/em&gt; dialog extends &lt;code&gt;ComponentDialog&lt;/code&gt;, as all the rest of the dialogs. It is an internal dialog that contains all the intents-to-dialog routing map. It is loaded during the &lt;code&gt;AuraBotserver&lt;/code&gt; start-up to be injected as a property in &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt; and used after each intent recognition to execute the selected dialog.&lt;/p&gt;
&lt;p&gt;At this stage, it is both instantiated and initialized, through these steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First, the whole list of plugins to be loaded in the system are passed to the dialog.&lt;/li&gt;
&lt;li&gt;It also counts on the instance of the &lt;a href=&#34;../../../../../docs/components/aura-bot-platform/aura-bot-components/#aura-botframework-adapter&#34;&gt;&lt;em&gt;&lt;strong&gt;Aura BotFramework adapter&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;, used during this start-up phase.&lt;/li&gt;
&lt;li&gt;Then the &lt;code&gt;WaterfallDialog&lt;/code&gt; with all the steps managed by the &lt;em&gt;&lt;strong&gt;main&lt;/strong&gt;&lt;/em&gt; dialog is added to the dialog.&lt;/li&gt;
&lt;li&gt;After that, it is initialized:
&lt;ul&gt;
&lt;li&gt;A &lt;code&gt;RoutingMap&lt;/code&gt; is created.&lt;/li&gt;
&lt;li&gt;All the configured plugins are registered:
&lt;ul&gt;
&lt;li&gt;First of all, internal dialogs are included as dialogs: &lt;em&gt;&lt;strong&gt;context-filter&lt;/strong&gt;&lt;/em&gt; dialog and &lt;em&gt;&lt;strong&gt;suggestions&lt;/strong&gt;&lt;/em&gt; dialog.&lt;/li&gt;
&lt;li&gt;Then, all the plugins configured in &lt;code&gt;plugins-config&lt;/code&gt; are looped to add the routes of all their dialogs in the &lt;code&gt;RoutingMap&lt;/code&gt; property of the &lt;em&gt;&lt;strong&gt;main&lt;/strong&gt;&lt;/em&gt; dialog, used during the activities processing to map the recognized intent to the corresponding dialog.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;During the activity processing, the &lt;a href=&#34;../../../../../docs/components/aura-bot-platform/aura-bot-components/#aura-bot-activityhandler&#34;&gt;&lt;em&gt;&lt;strong&gt;ActivityHandler&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt; calls &lt;code&gt;MainDialog.run&lt;/code&gt; method to handle the incoming activity (in the form of a &lt;code&gt;TurnContext&lt;/code&gt;), that passes it through the dialog system. If no dialog is active, it starts the default dialog. If there is any error in the &lt;code&gt;TurnContext&lt;/code&gt;, the processing stops here and is sent to the channel.&lt;/p&gt;
&lt;p&gt;At this stage, the &lt;em&gt;&lt;strong&gt;main&lt;/strong&gt;&lt;/em&gt; dialog is in charge of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Routing the recognized intent to the dialog that handles it for the current channel.&lt;/li&gt;
&lt;li&gt;Update &lt;em&gt;&lt;strong&gt;Aura Context&lt;/strong&gt;&lt;/em&gt; information of the current activity to include the dialog information.&lt;/li&gt;
&lt;li&gt;If the dialog includes a &lt;code&gt;contextFilter&lt;/code&gt; that fits the user&amp;rsquo;s context, then the dialog executed is the internal &lt;em&gt;&lt;strong&gt;context-filter&lt;/strong&gt;&lt;/em&gt; dialog.&lt;/li&gt;
&lt;li&gt;If the user&amp;rsquo;s context does not match with the &lt;code&gt;contextFilter&lt;/code&gt; of the dialog or the dialog does not have any &lt;code&gt;contextFilter&lt;/code&gt;, then the next step of the &lt;em&gt;&lt;strong&gt;main&lt;/strong&gt;&lt;/em&gt; dialog is executed to validate if the Kernel &lt;code&gt;accessToken&lt;/code&gt; of the user includes the scopes and purposes needed to execute the dialog.
&lt;ul&gt;
&lt;li&gt;If the &lt;code&gt;accessToken&lt;/code&gt; has no permissions to access it, then an error is returned, notifying the channel that the user has not consented &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt; to access the specific API.&lt;/li&gt;
&lt;li&gt;If authorization is correct, then the specific dialog is executed.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;When it ends, the next step of the &lt;em&gt;&lt;strong&gt;main&lt;/strong&gt;&lt;/em&gt; dialog is executed to check whether or not the dialog needs suggestions. If the dialog is configured to send suggestions and the user&amp;rsquo;s settings support them, then the internal &lt;code&gt;SuggestionsDialog&lt;/code&gt; is executed.&lt;/li&gt;
&lt;li&gt;When it ends, the &lt;em&gt;&lt;strong&gt;main&lt;/strong&gt;&lt;/em&gt; dialog also ends and an outgoing message flow is started.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;i class=&#34;fa-regular fa-file-lines fa-xl&#34; style=&#34;color: #0d5de7;&#34;&gt;&lt;/i&gt; Find here detailed information regarding the &lt;a href=&#34;../../../../../docs/components/aura-bot-platform/aura-bot-components/intent-dialog-routing/&#34;&gt;&lt;strong&gt;Routing Manager&lt;/strong&gt;&lt;/a&gt;.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Docs: </title>
      <link>/docs/components/aura-bot-platform/aura-bot-components/internal-dialogs/aura-bot-core-dialogs/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/docs/components/aura-bot-platform/aura-bot-components/internal-dialogs/aura-bot-core-dialogs/</guid>
      <description>
        
        
        &lt;h1 id=&#34;aura-bot-core-dialogs&#34;&gt;Aura Bot core dialogs&lt;/h1&gt;


&lt;div class=&#34;pageinfo pageinfo-primary&#34;&gt;
&lt;p&gt;Aura Bot core dialogs are internal global dialogs that are deployed within a specific Aura Platform release&lt;/p&gt;

&lt;/div&gt;

&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;The following &lt;em&gt;&lt;strong&gt;aura-bot&lt;/strong&gt;&lt;/em&gt; core dialogs are global ones designed and developed by &lt;strong&gt;Aura Platform Team&lt;/strong&gt; that are at the OBs&amp;rsquo; disposal to build experiences in Aura.  OBs cannot modify their logic but use them as they are.&lt;/p&gt;
&lt;p&gt;These dialogs are deployed jointly with the corresponding Aura Platform release.&lt;/p&gt;
&lt;p&gt;As intended for Aura global experiences, they are named below but fully described in the section &lt;a href=&#34;../../../../../docs/components/global-use-cases/&#34;&gt;Global use cases&lt;/a&gt; together with other global dialogs.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../../../docs/components/global-use-cases/miscellaneous-dialogs/contextfilter-dialog/&#34;&gt;&lt;em&gt;&lt;strong&gt;context-filter&lt;/strong&gt;&lt;/em&gt; dialog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../../../docs/components/global-use-cases/miscellaneous-dialogs/suggestions-dialog/&#34;&gt;&lt;em&gt;&lt;strong&gt;suggestions&lt;/strong&gt;&lt;/em&gt; dialog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;../../../../../docs/components/global-use-cases/miscellaneous-dialogs/unexpected-file-dialog/&#34;&gt;&lt;em&gt;&lt;strong&gt;unexpected-file&lt;/strong&gt;&lt;/em&gt; dialog&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
