The activity that produces an action potential in nerve cells is exchange of ions.
Action potentials are generated when there is a rapid influx of sodium ions (Na+) into the neuron followed by the efflux of potassium ions (K+), leading to a change in the membrane potential.