data = { 'prompt': 'You are a helpful assistant that helps users navigate websites.', 'name': 'Website Navigation Assistant' }
response = requests.post(url, headers=headers, json=data) result = response.json() if result['succeeded']: print(f"Created prompt with ID: {result['prompt_id']}")
Create a new prompt in the prompts table. The prompt text is required, while the name is optional. If no name is provided, it will default to “New Prompt - ”.The created prompt will be associated with your organization and user ID, and can be used in workflows that utilize the run_beta_agent action.
data = { 'prompt': 'You are a helpful assistant that helps users navigate websites.', 'name': 'Website Navigation Assistant' }
response = requests.post(url, headers=headers, json=data) result = response.json() if result['succeeded']: print(f"Created prompt with ID: {result['prompt_id']}")