I think the OP has it wrong. It won't be millions of dollars. Try billions.
So in a twist of irony (considering op was written in India) here is the advice on retaining market viability in face of cheap outsourced labor.
Do not train your replacement
So I don't know about India, but at least in US, domain literate workers should start companies that provide whatever they did as a unit of a corp as a service. And yes, use tools like GPT for your business.
You will lose the job either way. Walk out before helping in the task of setting up GPT to do your job, and start a company.
So in a twist of irony (considering op was written in India) here is the advice on retaining market viability in face of cheap outsourced labor.
Do not train your replacement
So I don't know about India, but at least in US, domain literate workers should start companies that provide whatever they did as a unit of a corp as a service. And yes, use tools like GPT for your business.
You will lose the job either way. Walk out before helping in the task of setting up GPT to do your job, and start a company.