Use a component in a solution
EARLY ACCESS- Create the component in Chatbots.
- Create Input and Output attributes in the component.
- In a supported solution such as a Chatbots chatbot, call the component.
- In the solution, provide the input to the component through the Input attributes.
- The component processes the input and generates an output.
- The component returns the output through Output attributes.
Use a component in a Chatbots chatbot
-
In your chatbot, add the Component element.
-
In the element, select a component.
IMPORTANTYou can only add a component that has the same channel as the chatbot.
The element shows the input and output attributes that are used in the selected component.
-
Enter the values of the input attributes.
-
Map the output attributes of the component to chatbot attributes.
-
Configure a fallback to manage errors. Example: Failure to call the component or component processing fails.
In such cases, the fallback action is triggered.
For more information, see the Fallback documentation.
-
Configure the chatbot to meet your use case and requirements.
-
Test the functionality of the component in the Test > Simulator tab.
The Component start field shows the input for the component.
The other fields show the processing in the component.
The Component end field shows the output from the component.
-
Activate the chatbot.
IMPORTANTIf the selected component is deleted, you must either use a different component or remove the Component element before you activate the chatbot.
If the selected component has not been published, you must publish it before you can activate the chatbot.