Indicates you were on the verge of doing something.
Examples: 전화하려던 참이었어요 (I was just about to call).