Modern information systems are considered as collection of independent units that interact with each other through the exchange of messages. Especially in the context of multiagent systems, the interaction between agents is of particular importance. Agent interaction protocols (AIPs) are one important mechanism to define agent-based interactions. AIPs play a major role within the platform independent modeling language for multiagent systems (Dsml4Mas). In this paper, we demonstrate how to design protocols with Dsml4Mas and discuss a model-driven approach to use the protocol description to generate executable code.