You can send message with state_init cell
to deploy wallet contract if it is not deployed yet.
You can refer to example TypeScript based code in the tonstarter contracts repository:
https://github.com/ton-defi-org/tonstarter-contracts/blob/main/build/_deploy.ts#L105-L123