Amitriptyline is from a group of medicines called tricyclic antidepressants. They are thought to work by increasing a chemical called serotonin in your brain. This can improve your mood. This can also change the way that your nerves receive pain signals so pain goes away.