You can build traps in the Battle Workshop. There are different types of traps, all with different usage.

Upgrading the Battle Workshop will unlock new and more powerful traps, as well as increase the max trap capacity. Trap production speed can be increased through research and upgrade using Skill Points.