Conversation so far:
what is the name of andhra pradesh's new capital
Amaravati is a proposed, planned capital city in the Indian state of Andhra Pradesh.
where is Amaravati being built
Amaravati has been allotted space to be built on the southern banks of the Krishna river in Guntur district, within the Andhra Pradesh Capital Region.
why is Andhra Pradesh constructing Amaravati to be the new capital
Amaravati is being constructed to serve as the new capital city of Andhra Pradesh, after Telangana was split off as a separate state in 2014.

Question: what was the previous capital
Self-contained rewrite: what was the capital of andhra pradesh before Amaravati