Finely chop the Onions, green chillies and coriander leaves. Mix all the above ingredients together along with the rice or besan flour. Add a little water. Make sure that the batter is thick and not watery as we need to shape them in small flat balls.