what is correct place of some method in clean architecture?

this is my first project with clean architecture,and I'm new to this :

enter image description here

I ask my questions with some example :

  1. in my controller, I need to decode users input and I want to create a function for this operation, where is the correct place of this method in clean architecture?
  2. my second requirement is that I need to send that decoded string to another server , I should write this code straightly in action or create a function for this? if I should create a function, where is the correct place of this?