Abstract: We will first review how Poisson brackets can be seen as the infinitesimal data underlying certain types of transformations which form a 'local symplectic groupoid'. The composition map in this structure defines a lagrangian submanifold and this, in turn, can be locally described by a generating function. We show how to obtain an explicit analytic formula for this generating function for any Poisson bracket on a coordinate space and how this formula reproduces, upon suitable Taylor expansion, a certain tree-level part of a formula given by Kontsevich in the context of quantization. We will also discuss further the link between the generating function, symplectic realizations, and general quantizations, as well as their connection to a related 2d field theory (the 'Poisson-sigma model'). The first part of this talk is based on joint work with B. Dherin.