This article is a continuation of the previous article, demonstrating how to create a plugin action by integrating the 3rd party app.
In this article, we will see the steps to adding the plugin to the topics.
Following the addition of the action plugin, we shall see how to add the plugin to the topics.
Now, the created plugin action needs to be triggered under any topic. To do so, go to Topics and create a new topic by clicking on the button Add a topic.
Choose the option Create from Description with Copilot from the drop-down menu.
Create the topic by providing its name and brief description.
Automatically, the topic will be created with a dynamic query; if a user asks for the weather, the topic will ask the user for the location details.
Click on the + icon to add the plugin we created in the previous section.
After adding the plugin, assign the location that needs to be input by the user by clicking the Set the Value button.
To add the user input to the variable, click the arrow and choose the Activity. Text under the System tab.
Now the output needs to be responded back to the user. Click on the + again and add a Send a Message component option.
Click on the insert variable {X} to choose the response from the plugin.
Choose the responses variable from the Custom tab.
That’s it done! Click Save the topic and test the plugin.
Testing