The tree is the producer. Then, the tree leaves are eaten by the caterpillar, who is a herbivorous consumer. Then, the caterpillar is eaten by the bird, who is an omnivorous consumer.
There is no decomposer or carnivorous consumer shown in this flowchart.