Connection Commands
Learn about writing connection commands for Books built with BDK.
Last updated
Was this helpful?
Learn about writing connection commands for Books built with BDK.
Last updated
Was this helpful?
You must first your Book before connecting it.
A connection command is written in Kognitos to instantiate a connection to a third-party tool or service from a BDK Book. Whenever a Book implements a using the decorator, a connection command is required in your automation process.
Connection commands are also required when calling a from a BDK Book that requires a connection. Procedures requiring a connection will have connection_required=True
in the decorator.
Use the following syntax to write a connection command in a Kognitos automation:
{book name}
- The name of your Book, as defined in your decorator.
{noun phrase}
– The noun_phrase
defined in your decorator.
{preposition}
– Any preposition that aligns with the plurality of the noun phrase. For example:
Plural noun phrase: via some API keys
Singular noun phrase: via a client credentials method
To pass arguments to your connection, add the with
keyword at the end of the syntax. List each argument on a separately indented line, using the following format:
In this example, api keys is the noun phrase, and several connection arguments are provided.