Tailoring a conductive composite hydrogel, shaped as beads or liquid core capsules, allows to probe the electroactivity of bacteria.