Given a ternary relation C on a set U and an algebra A, we present a construction of a convolution algebra A(U,C) of U = (U,C) over A. This generalises bothmatrix algebras and algebras obtained from convolution of monoids. To any class of algebras corresponds a class of convolution structures. Our study cases are the classes of commutative, associative, Lie, and Jordan algebras. In each of thes...