of ["API_KEY", "SECRET_KEY", "SUBSCRIPTION_KEY", "ACCESS_KEY"] for API keys or ["ACCESS_TOKEN", "SECRET_TOKEN"] for authentication tokens. Examples are "OPENAI_API_KEY", "BING_SUBSCRIPTION_KEY", "AIRTABLE_ACCESS_TOKEN".""" Load all relevant API Keys and Access Tokens into your environment variables """os.environ["OPENAI_API_KEY"] = "*INSERT OPENAI API KEY HERE*"os.environ["AIRTABLE_ACCESS_TOKEN"] = "*INSERT AIRTABLE TOKEN HERE*"hackernews_username = "*INSERT HACKERNEWS USERNAME HERE*"airtable_base_id = "*INSERT BASE ID HERE*"airtable_table_id = "*INSERT TABLE ID HERE*"""" Define your instruction to be given to your LLM """prompt = f"""Read information from Hackernews for user {hackernews_username} and then write the results toAirtable (baseId: {airtable_base_id}, tableId: {airtable_table_id}). Only write the fields "username", "karma"and "created_at_i". Please make sure that Airtable does NOT automatically convert the field types.""""""Use the Lemon AI execute_workflow wrapper to run your Langchain agent in combination with Lemon AI  """model = OpenAI(temperature=0)execute_workflow(llm=model, prompt_string=prompt)4. Gain transparency on your Agent's decision making‚ÄãTo gain transparency on how your Agent interacts with Lemon AI tools to solve a given task, all decisions made, tools used and operations performed are written to a local lemonai.log file. Every time your LLM agent is interacting with the Lemon AI tool stack a corresponding log entry is created.2023-06-26T11:50:27.708785+0100 - b5f91c59-8487-45c2-800a-156eac0c7dae - hackernews-get-user2023-06-26T11:50:39.624035+0100 - b5f91c59-8487-45c2-800a-156eac0c7dae - airtable-append-data2023-06-26T11:58:32.925228+0100 - 5efe603c-9898-4143-b99a-55b50007ed9d - hackernews-get-user2023-06-26T11:58:43.988788+0100 - 5efe603c-9898-4143-b99a-55b50007ed9d - airtable-append-dataBy using the Lemon AI Analytics you can easily gain a better understanding of how frequently and in which order tools are used. As a result, you
Lemon Agent helps you build powerful AI assistants in minutes and automate workflows by allowing for accurate and reliable read and write operations in tools like Airtable, Hubspot, Discord, Notion, Slack and Github.
Lemon Agent helps you build powerful AI assistants in minutes and automate workflows by allowing for accurate and reliable read and write operations in tools like Airtable, Hubspot, Discord, Notion, Slack and Github. ->: of ["API_KEY", "SECRET_KEY", "SUBSCRIPTION_KEY", "ACCESS_KEY"] for API keys or ["ACCESS_TOKEN", "SECRET_TOKEN"] for authentication tokens. Examples are "OPENAI_API_KEY", "BING_SUBSCRIPTION_KEY", "AIRTABLE_ACCESS_TOKEN".""" Load all relevant API Keys and Access Tokens into your environment variables """os.environ["OPENAI_API_KEY"] = "*INSERT OPENAI API KEY HERE*"os.environ["AIRTABLE_ACCESS_TOKEN"] = "*INSERT AIRTABLE TOKEN HERE*"hackernews_username = "*INSERT HACKERNEWS USERNAME HERE*"airtable_base_id = "*INSERT BASE ID HERE*"airtable_table_id = "*INSERT TABLE ID HERE*"""" Define your instruction to be given to your LLM """prompt = f"""Read information from Hackernews for user {hackernews_username} and then write the results toAirtable (baseId: {airtable_base_id}, tableId: {airtable_table_id}). Only write the fields "username", "karma"and "created_at_i". Please make sure that Airtable does NOT automatically convert the field types.""""""Use the Lemon AI execute_workflow wrapper to run your Langchain agent in combination with Lemon AI  """model = OpenAI(temperature=0)execute_workflow(llm=model, prompt_string=prompt)4. Gain transparency on your Agent's decision making‚ÄãTo gain transparency on how your Agent interacts with Lemon AI tools to solve a given task, all decisions made, tools used and operations performed are written to a local lemonai.log file. Every time your LLM agent is interacting with the Lemon AI tool stack a corresponding log entry is created.2023-06-26T11:50:27.708785+0100 - b5f91c59-8487-45c2-800a-156eac0c7dae - hackernews-get-user2023-06-26T11:50:39.624035+0100 - b5f91c59-8487-45c2-800a-156eac0c7dae - airtable-append-data2023-06-26T11:58:32.925228+0100 - 5efe603c-9898-4143-b99a-55b50007ed9d - hackernews-get-user2023-06-26T11:58:43.988788+0100 - 5efe603c-9898-4143-b99a-55b50007ed9d - airtable-append-dataBy using the Lemon AI Analytics you can easily gain a better understanding of how frequently and in which order tools are used. As a result, you