Using OpenAI Assistants in ProcFu
We've just added a new function to ProcFu: open_ai_assistant. This lets you tap into your own custom OpenAI Assistants right from your flows and scripts - just by passing an assistant_id and a prompt.
Why this is so cool?
Unlike a typical one-off GPT prompt, OpenAI Assistants can be trained with files, memory, and instructions so they respond exactly how you want - every time. Once you've created and refined an assistant, you can use it anywhere in your workflow to generate summaries, answer customer questions, transform data, or even write code.
This gives you more control, more consistency, and the ability to build mini-experts into your automated processes.
Here are a few example things you can do:
- Smart summaries: Send your assistant a long meeting transcript and get a neat bullet-point summary back.
- Email polishers: Turn rough customer support drafts into friendly, well-written replies.
- Data transformers: Reformat incoming info into JSON, SQL, or even code snippets.
- Knowledge helpers: Answer questions about your company, product, or documentation - based on your own uploaded files.
Create your Assistant
- Click "Create assistant"
- Give it instructions (e.g. "You're a helpful assistant for customer support tickets.")
- Upload any relevant files
- Note the assistant_id shown after creation
Use your Assistant
- Make sure you’ve added OpenAI to your ProcFu account (under Account → Integrations)
- From Scripts inside ProcFu, simply call the open_ai_assistant function directly
$assistantId = "asst_123..."; $prompt = "Here's the prompt I want to send"; $response = open_ai_assistant($assistantId, $prompt);