autogen/website/docs/topics/openai-assistant/gpt_assistant_agent.md
Create a OpenAI Assistant in Autogen  ```python import os  from autogen import config_list_from_json from autogen.agentchat.contrib.gpt_assistant_agent import GPTAssistantAgent  assistant_id = os.environ.get("ASSISTANT_ID", None) config_list = config_list_from_json("OAI_CONFIG_LIST") llm_config = {     "config_list": config_list, } assistant_config = {     # define the openai assistant behavior as you need } oai_agent = GPTAssistantAgent(     name="oai_agent",     instructions="I'm an openai assistant running in autogen",     llm_config=llm_config,     assistant_config=assistant_config, ) ``` 