It is possible to auto allot a service ticket to an Agent based on response from a back end webservice providing info on which agent will deal with the request.
How escalation hierarchy is managed.
Can their be custom input fields in the new ticket input page.
You can integrate your backend service with Freshdesk using the REST API as described in the doc here. Using the API, you can assign tickets to agents by passing the necessary parameters from your backend service.