Consider a simplicial set $X^\bullet$ with face maps $d_i$ (assume the set is finite in each degree so there are no measure issues). Then given two functions $f,g:X^1\to \mathbb{C}$ one can form their "convolution" by doing a push-pull:
$\displaystyle (f\star g)(x)=d_{1*}\big((d_0^*f)(d_2^*g)\big)(x)=\sum_{\Delta} f(a)g(b),$
where the sum is over all $\Delta$ such that $d_0=a, d_1=x, d_2=b.$ If we consider the basis of functions given by $\delta_a(x)=1$ if $x=a$ and equals $0$ otherwise, we have that $\displaystyle (\delta_a\star\delta_b)(x)=w(x),$ where $w(x)$ is the number of ways of "composing" $a$ and $b$ to give $x.$
This isn't necessarily an algebra because this product might not be associative, however using $\star$ we can associate to each $f$ the linear map $g\mapsto f\star g$ and therefore we get a natural subalgebra of the endomorphisms of a finite dimensional vector space. If $X^{\bullet}$ is a groupoid then this gives the groupoid convolution algebra.
Has this been studied in the general case? I haven't been able to find anything written about it (though I have found it implicitly used in at least one paper).