How to make custom components in rasa 3

I made a basic printer component in rasa 2 but the same is now not working in rasa 3 please help me with how can we make a basic printer component which will print the user message, it’s intent like the I did in rasa 2. change.py (2.2 KB) The way I am using message.data to print all data like text and intents, how can we do the same in rasa 3.

Ok It’s all done all we have to do is to use a for loop and then continue with the rest. change.py (2.2 KB) This is a basic translator custom component which I was making.