# Use a component in a solution [#use-component-in-solution]
  
EARLY ACCESS

___
  
1. [Create the component](https://www.infobip.com/docs/create-component#create-component) in Chatbots.
2. Create Input and Output attributes in the component.
3. In a supported solution such as a Chatbots chatbot, [call the component](https://www.infobip.com/docs/use-components#use-component-in-chatbot).
4. In the solution, provide the input to the component through the Input attributes.
5. The component processes the input and generates an output.
6. The component returns the output through Output attributes.
  
___
  
## Use a component in a Chatbots chatbot [#use-component-in-chatbot]
  
1. In your chatbot, add the **Component** element.
2. In the element, select a component.
  
   IMPORTANT
   You 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.
2. Enter the values of the input attributes.
3. Map the output attributes of the component to chatbot attributes.
4. 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](https://www.infobip.com/docs/build-chatbots/elements#fallback) documentation.
4. Configure the chatbot to meet your use case and requirements.
4. 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.
  
5. Activate the chatbot.
  
   IMPORTANT
   If 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.
  
___