Found a nice text-based tool to generate UML sequence diagrams. The diagrams can be accessed via apis too. Web Sequence Diagrams