Suppose that we have $N$-many identical particles, whose space-spin-coordinates are given by $x_{1}, x_{2},...x_{n}$ and whose composite system is represented by $|\Psi\rangle$. Then, according to the textbook, the wavefunction of these particles can be represented by:
$$\Psi(x_{1}, x_{2}, ... x_{n}) = \langle x_{1}, x_{2}, ... x_{2}|\Psi \rangle$$
What is the physical meaning of this? Whence the inner product of $|x_{1}, x_{2},... x_{n}\rangle$ and $|\Psi \rangle$? Why take the inner product to get the wavefunction?
I know it's a very elementary question, but I want to understand the physical meaning of the equation. (Also, I know this is not particularly about many-particle systems, but it's just what I happen to be looking at right now.)