I am currently writing a story about the very unique relationship between a sentient race of bees and humanity. Humans, through bartering and trade, have grown to have a close relationship with these insects overtime. A few humans even reach the rank of Paji (Hive Master) which gives them the ability to control an entire hive of bees as if they where their queen.
However, as I was writing, the thought accorded to me: There is no straight-foreword way for these creatures to be able to communicate with humans, especially not in the pre-industrial era this story takes place in.
The following are true:
The insects are not sentient on an individual level. Rather, a designated "Paji" is given complete control of any individual hive. (It is NOT a hive mind. Two individual parts of the hive cannot communicate with each other without that hives Paji acting as mediator. Further, the Paji is completely blind and is basically incapable of interacting with the outside world without the aid of another branch of the hive. Think of a "hive" in this case as being a meta-organism: with the Paji being its nervous system, and the individual elements of the hive being organs/limbs.)
These insects have NEVER developed a concept like human language. Instead, the Paji communicates with the rest of the hive via a very complicated logic-based system similar to a computer programming language like C++. In their "language" every member of hive is equipped with a "list" of functions that they can preform at any time. However, they can only actually do what is imputed by the Paji. The Paji itself can only input its intentions via a high-frequency ringing that is impossible for a human being to hear.
Only the Paji in this setting are sentient. They are incapable of learning information not told to them by other members of their hive, and are biologically incapable of learning human language.
Humans by this point of the story are aware that the Paji of a hive are sentient, of a Paji's general limitations, and lack their lack of language. However, "somehow" they have devised a way to communicate with them while at a late iron age level of technological development.
These bees are completely fictitious. However, in-build, they are of a similar size to Apis mellifera.
With all of that being said, what is the most logical way that humans can communicate with these insects baring magic?