If you receive an eviction notice, the worst thing you can do is to do nothing.
Pay attention to any deadlines or court dates - write them down. Are there any steps you can take to fix the issue that has lead to the eviction notice? For example, if you are behind on rent, you could apply for the Emergency Rental Assistance Program or contact United Tenants of Albany about assistance, or talk to your landlord about a payment plan. If there are lease violations, perhaps you can take steps to remedy that situation.
You may also wish to seek legal assistance through an organization such as the Legal Aid Society of Northeastern NY.
Remember that you have the legal right to stay in your home until you have received an eviction judgment and your landlord has a signed warrant. An eviction notice does not mean you have to leave.